GoogleApi.Spanner.V1.Model.Field (google_api_spanner v0.32.0) View Source

Message representing a single field of a struct.

Attributes

  • name (type: String.t, default: nil) - 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.
  • type (type: GoogleApi.Spanner.V1.Model.Type.t, default: nil) - The type of the field.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Spanner.V1.Model.Field{
  name: String.t() | nil,
  type: GoogleApi.Spanner.V1.Model.Type.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.