Class: Google::Apis::DatastoreV1beta2::GqlQuery
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::GqlQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb
Overview
A GQL query.
Instance Attribute Summary collapse
-
#allow_literal ⇒ Boolean
(also: #allow_literal?)
When false, the query string must not contain a literal.
-
#name_args ⇒ Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>
A named argument must set field GqlQueryArg.name.
-
#number_args ⇒ Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>
Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0.
-
#query_string ⇒ String
The query string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GqlQuery
constructor
A new instance of GqlQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GqlQuery
Returns a new instance of GqlQuery.
309 310 311 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_literal ⇒ Boolean Also known as: allow_literal?
When false, the query string must not contain a literal.
Corresponds to the JSON property allowLiteral
285 286 287 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 285 def allow_literal @allow_literal end |
#name_args ⇒ Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>
A named argument must set field GqlQueryArg.name. No two named arguments may
have the same name. For each non-reserved named binding site in the query
string, there must be a named argument with that name, but not necessarily the
inverse.
Corresponds to the JSON property nameArgs
294 295 296 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 294 def name_args @name_args end |
#number_args ⇒ Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>
Numbered binding site @1 references the first numbered argument, effectively
using 1-based indexing, rather than the usual 0. A numbered argument must NOT
set field GqlQueryArg.name. For each binding site numbered i in query_string,
there must be an ith numbered argument. The inverse must also be true.
Corresponds to the JSON property numberArgs
302 303 304 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 302 def number_args @number_args end |
#query_string ⇒ String
The query string.
Corresponds to the JSON property queryString
307 308 309 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 307 def query_string @query_string end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 317 318 319 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 314 def update!(**args) @allow_literal = args[:allow_literal] if args.key?(:allow_literal) @name_args = args[:name_args] if args.key?(:name_args) @number_args = args[:number_args] if args.key?(:number_args) @query_string = args[:query_string] if args.key?(:query_string) end |