Class Type

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
google.cloud.spanner_v1.types.TypeCodecode
Required. The `TypeCode][google.spanner.v1.TypeCode]` for this type.
google.cloud.spanner_v1.types.Typearray_element_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.
google.cloud.spanner_v1.types.StructTypestruct_type
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