Class GqlQuery (4.1.0)

public sealed class GqlQuery : IMessage<GqlQuery>, IEquatable<GqlQuery>, IDeepCloneable<GqlQuery>, IBufferMessage, IMessage

Inheritance

Object > GqlQuery

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

GqlQuery()

public GqlQuery()

GqlQuery(GqlQuery)

public GqlQuery(GqlQuery other)
Parameter
NameDescription
otherGqlQuery

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 = &apos;string literal&apos; is not allowed, while SELECT * FROM Kind WHERE a = @value is.

Property Value
TypeDescription
Boolean

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 &quot;&quot;.

Property Value
TypeDescription
MapField<String, GqlQueryParameter>

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
TypeDescription
RepeatedField<GqlQueryParameter>

QueryString

public string QueryString { get; set; }

A string of the format described here.

Property Value
TypeDescription
String