Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::Type (v0.11.0)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::Type.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#array_element_type

def array_element_type() -> ::Google::Cloud::Spanner::V1::Type
Returns

#array_element_type=

def array_element_type=(value) -> ::Google::Cloud::Spanner::V1::Type
Parameter
Returns

#code

def code() -> ::Google::Cloud::Spanner::V1::TypeCode
Returns

#code=

def code=(value) -> ::Google::Cloud::Spanner::V1::TypeCode
Parameter
Returns

#struct_type

def struct_type() -> ::Google::Cloud::Spanner::V1::StructType
Returns

#struct_type=

def struct_type=(value) -> ::Google::Cloud::Spanner::V1::StructType
Parameter
Returns

#type_annotation

def type_annotation() -> ::Google::Cloud::Spanner::V1::TypeAnnotationCode
Returns
  • (::Google::Cloud::Spanner::V1::TypeAnnotationCode) — 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.

#type_annotation=

def type_annotation=(value) -> ::Google::Cloud::Spanner::V1::TypeAnnotationCode
Parameter
  • value (::Google::Cloud::Spanner::V1::TypeAnnotationCode) — 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.
Returns
  • (::Google::Cloud::Spanner::V1::TypeAnnotationCode) — 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.