Class Type (2.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 `.gs_type.TypeCode`
Required. The `TypeCode][google.spanner.v1.TypeCode]` for this type.
array_element_type `.gs_type.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 `.gs_type.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.

Inheritance

builtins.object > proto.message.Message > Type