Class Type (3.1.0)

Type(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
code google.cloud.spanner_v1.types.TypeCode
Required. The TypeCode][google.spanner.v1.TypeCode] for this type.
array_element_type google.cloud.spanner_v1.types.Type
If code][google.spanner.v1.Type.code] == ARRAY][google.spanner.v1.TypeCode.ARRAY], then array_element_type is the type of the array elements.
struct_type google.cloud.spanner_v1.types.StructType
If code][google.spanner.v1.Type.code] == STRUCT][google.spanner.v1.TypeCode.STRUCT], then struct_type provides type information for the struct's fields.