google_api_spanner v0.6.1 GoogleApi.Spanner.V1.Model.Field 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

Link to this type

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

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.