google_api_datastore v0.1.0 GoogleApi.Datastore.V1.Model.GqlQuery View Source

A GQL query.

Attributes

  • allowLiterals (boolean()): When false, the query string must not contain any literals and instead must bind all values. For example, `SELECT FROM Kind WHERE a = 'string literal'` is not allowed, while `SELECT FROM Kind WHERE a = @value` is. Defaults to: null.
  • namedBindings (%{optional(String.t) => GqlQueryParameter}): For each non-reserved named binding site in the query string, there must be a named parameter with that name, but not necessarily the inverse. Key must match regex `A-Za-z$`, must not match regex `__._`, and must not be `""`. Defaults to: null.
  • positionalBindings ([GqlQueryParameter]): Numbered binding site @1 references the first numbered parameter, effectively using 1-based indexing, rather than the usual 0. For each binding site numbered i in `query_string`, there must be an i-th numbered parameter. The inverse must also be true. Defaults to: null.
  • queryString (String.t): A string of the format described here. Defaults to: null.

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.Datastore.V1.Model.GqlQuery{
  allowLiterals: any(),
  namedBindings: map(),
  positionalBindings: [GoogleApi.Datastore.V1.Model.GqlQueryParameter.t()],
  queryString: any()
}

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.