GoogleApi.Spanner.V1.Model.Type (google_api_spanner v0.48.0)
View SourceType
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:GoogleApi.Spanner.V1.Model.Type.t
, default:nil
) - If code == ARRAY, thenarray_element_type
is the type of the array elements. -
code
(type:String.t
, default:nil
) - Required. The TypeCode for this type. -
protoTypeFqn
(type:String.t
, default:nil
) - If code == PROTO or code == ENUM, thenproto_type_fqn
is the fully qualified name of the proto type representing the proto/enum definition. -
structType
(type:GoogleApi.Spanner.V1.Model.StructType.t
, default:nil
) - If code == STRUCT, thenstruct_type
provides type information for the struct's fields. -
typeAnnotation
(type:String.t
, default:nil
) - The TypeAnnotationCode that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single TypeCode can be mapped to different SQL types depending on the SQL dialect. type_annotation typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Spanner.V1.Model.Type{ arrayElementType: t() | nil, code: String.t() | nil, protoTypeFqn: String.t() | nil, structType: GoogleApi.Spanner.V1.Model.StructType.t() | nil, typeAnnotation: String.t() | nil }