class Google::Apis::DatastoreV1beta3::GqlQuery
A [GQL query](cloud.google.com/datastore/docs/apis/gql/gql_reference).
Attributes
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. Corresponds to the JSON property `allowLiterals` @return [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. Corresponds to the JSON property `allowLiterals` @return [Boolean]
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 `“”`. Corresponds to the JSON property `namedBindings` @return [Hash<String,Google::Apis::DatastoreV1beta3::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. Corresponds to the JSON property `positionalBindings` @return [Array<Google::Apis::DatastoreV1beta3::GqlQueryParameter>]
A string of the format described [here](cloud.google.com/datastore/ docs/apis/gql/gql_reference). Corresponds to the JSON property `queryString` @return [String]
Public Class Methods
# File lib/google/apis/datastore_v1beta3/classes.rb, line 842 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/datastore_v1beta3/classes.rb, line 847 def update!(**args) @allow_literals = args[:allow_literals] if args.key?(:allow_literals) @named_bindings = args[:named_bindings] if args.key?(:named_bindings) @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings) @query_string = args[:query_string] if args.key?(:query_string) end