class Google::Apis::SpannerV1::Field
Message representing a single field of a struct.
Attributes
name[RW]
The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `“Word”` in the query `“SELECT 'hello' AS Word”`), or the column name (e.g., `“ColName”` in the query `“SELECT ColName FROM Table” `). Some columns might have an empty name (e.g., `“SELECT UPPER(ColName)”`). Note that a query result can contain multiple fields with the same name. Corresponds to the JSON property `name` @return [String]
type[RW]
`Type` indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query. Corresponds to the JSON property `type` @return [Google::Apis::SpannerV1::Type]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 1509 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/spanner_v1/classes.rb, line 1514 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end