public sealed class GqlQuery : IMessage<GqlQuery>, IEquatable<GqlQuery>, IDeepCloneable<GqlQuery>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class GqlQuery.
A GQL query.
Namespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Constructors
GqlQuery()
public GqlQuery()
GqlQuery(GqlQuery)
public GqlQuery(GqlQuery other)
Parameter | |
---|---|
Name | Description |
other | GqlQuery |
Properties
AllowLiterals
public bool AllowLiterals { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
NamedBindings
public MapField<string, GqlQueryParameter> NamedBindings { get; }
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 ""
.
Property Value | |
---|---|
Type | Description |
MapFieldstringGqlQueryParameter |
PositionalBindings
public RepeatedField<GqlQueryParameter> PositionalBindings { get; }
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.
Property Value | |
---|---|
Type | Description |
RepeatedFieldGqlQueryParameter |
QueryString
public string QueryString { get; set; }
A string of the format described here.
Property Value | |
---|---|
Type | Description |
string |