Class: Google::Datastore::V1::GqlQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#allow_literalstrue, false

Returns 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.

Returns:

  • (true, false)

    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.



228
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 228

class GqlQuery; end

#named_bindingsHash{String => Google::Datastore::V1::GqlQueryParameter}

Returns 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_$][A-Za-z_$0-9]+, must not match regex +__.__+, and must not be +""+.

Returns:

  • (Hash{String => Google::Datastore::V1::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_$][A-Za-z_$0-9]+, must not match regex +__.__+, and must not be +""+.



228
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 228

class GqlQuery; end

#positional_bindingsArray<Google::Datastore::V1::GqlQueryParameter>

Returns 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.

Returns:

  • (Array<Google::Datastore::V1::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.



228
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 228

class GqlQuery; end

#query_stringString

Returns A string of the format described here[https://cloud.google.com/datastore/docs/apis/gql/gql_reference].

Returns:



228
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 228

class GqlQuery; end