google_api_spanner v0.2.0 GoogleApi.Spanner.V1.Model.Type View Source

`Type` indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

Attributes

  • arrayElementType (Type): If code == ARRAY, then `array_element_type` is the type of the array elements. Defaults to: null.
  • code (String.t): Required. The TypeCode for this type. Defaults to: null.

    • Enum - one of [TYPE_CODE_UNSPECIFIED, BOOL, INT64, FLOAT64, TIMESTAMP, DATE, STRING, BYTES, ARRAY, STRUCT]
  • structType (StructType): If code == STRUCT, then `struct_type` provides type information for the struct's fields. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.Spanner.V1.Model.Type{
  arrayElementType: GoogleApi.Spanner.V1.Model.Type.t(),
  code: any(),
  structType: GoogleApi.Spanner.V1.Model.StructType.t()
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.