Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
Fauna.QueryExpr Class Referencesealed

Represents an FQL query expression. This class encapsulates a list of IQueryFragment instances, allowing for complex query constructions. More...

Inheritance diagram for Fauna.QueryExpr:
Fauna.Query Fauna.IQueryFragment Fauna.IQueryFragment

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< IQueryFragmentUnwrap [get]
 Gets the readonly collection of query fragments.
 
IReadOnlyCollection< IQueryFragmentFragments [get]
 Gets the readonly collection of query fragments.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QueryExpr() [1/2]

Fauna.QueryExpr.QueryExpr ( IList< IQueryFragment fragments)

Initializes a new instance of the QueryExpr class with a collection of query fragments.

Parameters
fragmentsThe collection of IQueryFragment instances.

Definition at line 16 of file QueryExpr.cs.

◆ QueryExpr() [2/2]

Fauna.QueryExpr.QueryExpr ( params IQueryFragment[]  fragments)

Initializes a new instance of the QueryExpr class with one or more query fragments.

Parameters
fragmentsThe array of IQueryFragment instances.

Definition at line 25 of file QueryExpr.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool Fauna.QueryExpr.Equals ( object?  o)

Determines whether the specified object is equal to the current QueryExpr.

Parameters
oThe object to compare with the current QueryExpr.
Returns
true if the specified object is equal to the current QueryExpr; otherwise, false.

Definition at line 70 of file QueryExpr.cs.

◆ Equals() [2/2]

override bool Fauna.QueryExpr.Equals ( Query o)

Determines whether the specified QueryExpr is equal to the current QueryExpr.

Parameters
oThe QueryExpr to compare with the current QueryExpr.
Returns
true if the specified QueryExpr is equal to the current QueryExpr; otherwise, false.

◆ GetHashCode()

override int Fauna.QueryExpr.GetHashCode ( )

The default hash function.

Returns
A hash code for the current QueryExpr.

◆ operator!=()

static bool Fauna.QueryExpr.operator!= ( QueryExpr  left,
QueryExpr  right 
)
static

Determines whether two specified instances of QueryExpr are not equal.

Parameters
leftThe first QueryExpr to compare.
rightThe second QueryExpr to compare.
Returns
true if left and right are not equal; otherwise, false.

Definition at line 134 of file QueryExpr.cs.

◆ operator==()

static bool Fauna.QueryExpr.operator== ( QueryExpr  left,
QueryExpr  right 
)
static

Determines whether two specified instances of QueryExpr are equal.

Parameters
leftThe first QueryExpr to compare.
rightThe second QueryExpr to compare.
Returns
true if left and right are equal; otherwise, false.

Definition at line 113 of file QueryExpr.cs.

◆ Serialize()

override void Fauna.QueryExpr.Serialize ( MappingContext  ctx,
Utf8FaunaWriter  writer 
)

Serializes the query expression.

Parameters
ctxThe serialization context.
writerThe writer to serialize the query expression to.

Implements Fauna.IQueryFragment.

Definition at line 45 of file QueryExpr.cs.

◆ ToString()

override string Fauna.QueryExpr.ToString ( )

Returns a string that represents the current QueryExpr.

Returns
A string that represents the current QueryExpr.

Property Documentation

◆ Fragments

IReadOnlyCollection<IQueryFragment> Fauna.QueryExpr.Fragments
get

Gets the readonly collection of query fragments.

Definition at line 38 of file QueryExpr.cs.

◆ Unwrap

IReadOnlyCollection<IQueryFragment> Fauna.QueryExpr.Unwrap
get

Gets the readonly collection of query fragments.

Definition at line 33 of file QueryExpr.cs.


The documentation for this class was generated from the following file: