Represents an FQL query expression. This class encapsulates a list of IQueryFragment instances, allowing for complex query constructions. More...
Public Member Functions | |
QueryExpr (IList< IQueryFragment > fragments) | |
Initializes a new instance of the QueryExpr class with a collection of query fragments. | |
QueryExpr (params IQueryFragment[] fragments) | |
Initializes a new instance of the QueryExpr class with one or more query fragments. | |
override void | Serialize (MappingContext ctx, Utf8FaunaWriter writer) |
Serializes the query expression. | |
override bool | Equals (Query? o) |
Determines whether the specified QueryExpr is equal to the current QueryExpr. | |
override bool | Equals (object? o) |
Determines whether the specified object is equal to the current QueryExpr. | |
override int | GetHashCode () |
The default hash function. | |
override string | ToString () |
Returns a string that represents the current QueryExpr. | |
Public Member Functions inherited from Fauna.Query | |
void | Serialize (MappingContext ctx, Utf8FaunaWriter writer) |
Serializes the query into the provided stream. | |
override int | GetHashCode () |
Returns a hash code for the current query. | |
override bool | Equals (object? otherObject) |
Determines whether the specified object is equal to the current query. | |
bool | Equals (Query? otherQuery) |
Determines whether the specified Query is equal to the current query. | |
Static Public Member Functions | |
static bool | operator== (QueryExpr left, QueryExpr right) |
Determines whether two specified instances of QueryExpr are equal. | |
static bool | operator!= (QueryExpr left, QueryExpr right) |
Determines whether two specified instances of QueryExpr are not equal. | |
Static Public Member Functions inherited from Fauna.Query | |
static Query | FQL (ref QueryStringHandler handler) |
Constructs an FQL query using the specified QueryStringHandler. | |
Properties | |
IReadOnlyCollection< IQueryFragment > | Unwrap [get] |
Gets the readonly collection of query fragments. | |
IReadOnlyCollection< IQueryFragment > | Fragments [get] |
Gets the readonly collection of query fragments. | |
Represents an FQL query expression. This class encapsulates a list of IQueryFragment instances, allowing for complex query constructions.
Definition at line 10 of file QueryExpr.cs.
Fauna.QueryExpr.QueryExpr | ( | IList< IQueryFragment > | fragments | ) |
Initializes a new instance of the QueryExpr class with a collection of query fragments.
fragments | The collection of IQueryFragment instances. |
Definition at line 16 of file QueryExpr.cs.
Fauna.QueryExpr.QueryExpr | ( | params IQueryFragment[] | fragments | ) |
Initializes a new instance of the QueryExpr class with one or more query fragments.
fragments | The array of IQueryFragment instances. |
Definition at line 25 of file QueryExpr.cs.
override bool Fauna.QueryExpr.Equals | ( | object? | o | ) |
Determines whether the specified object is equal to the current QueryExpr.
o | The object to compare with the current QueryExpr. |
Definition at line 70 of file QueryExpr.cs.
override bool Fauna.QueryExpr.Equals | ( | Query? | o | ) |
Determines whether the specified QueryExpr is equal to the current QueryExpr.
o | The QueryExpr to compare with the current QueryExpr. |
override int Fauna.QueryExpr.GetHashCode | ( | ) |
The default hash function.
Determines whether two specified instances of QueryExpr are not equal.
left | The first QueryExpr to compare. |
right | The second QueryExpr to compare. |
Definition at line 134 of file QueryExpr.cs.
Determines whether two specified instances of QueryExpr are equal.
left | The first QueryExpr to compare. |
right | The second QueryExpr to compare. |
Definition at line 113 of file QueryExpr.cs.
override void Fauna.QueryExpr.Serialize | ( | MappingContext | ctx, |
Utf8FaunaWriter | writer | ||
) |
Serializes the query expression.
ctx | The serialization context. |
writer | The writer to serialize the query expression to. |
Implements Fauna.IQueryFragment.
Definition at line 45 of file QueryExpr.cs.
override string Fauna.QueryExpr.ToString | ( | ) |
Returns a string that represents the current QueryExpr.
|
get |
Gets the readonly collection of query fragments.
Definition at line 38 of file QueryExpr.cs.
|
get |
Gets the readonly collection of query fragments.
Definition at line 33 of file QueryExpr.cs.