Fauna v10 .NET/C# Driver 1.0.0
 
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Fauna.QueryStringHandler Struct Reference

Provides a mechanism to build FQL query expressions using interpolated strings. This structure collects fragments and literals to construct complex query expressions. More...

Public Member Functions

 QueryStringHandler (int literalLength, int formattedCount)
 Initializes a new instance of the QueryStringHandler struct.
 
void AppendLiteral (string value)
 Appends a literal string to the query.
 
void AppendFormatted (object? value)
 Appends a formatted value to the query. The value is wrapped as a QueryVal or QueryExpr depending on its type.
 
Query Result ()
 Constructs and returns a Query instance representing the current state of the handler.
 

Detailed Description

Provides a mechanism to build FQL query expressions using interpolated strings. This structure collects fragments and literals to construct complex query expressions.

Definition at line 9 of file QueryStringHandler.cs.

Constructor & Destructor Documentation

◆ QueryStringHandler()

Fauna.QueryStringHandler.QueryStringHandler ( int  literalLength,
int  formattedCount 
)

Initializes a new instance of the QueryStringHandler struct.

Parameters
literalLengthThe estimated length of the literals in the interpolated string.
formattedCountThe number of format items in the interpolated string.

Definition at line 18 of file QueryStringHandler.cs.

Member Function Documentation

◆ AppendFormatted()

void Fauna.QueryStringHandler.AppendFormatted ( object?  value)

Appends a formatted value to the query. The value is wrapped as a QueryVal or QueryExpr depending on its type.

Parameters
valueThe value to append.

Definition at line 36 of file QueryStringHandler.cs.

◆ AppendLiteral()

void Fauna.QueryStringHandler.AppendLiteral ( string  value)

Appends a literal string to the query.

Parameters
valueThe literal string to append.

Definition at line 27 of file QueryStringHandler.cs.

◆ Result()

Query Fauna.QueryStringHandler.Result ( )

Constructs and returns a Query instance representing the current state of the handler.

Returns
A Query instance representing the constructed query fragments.

Definition at line 52 of file QueryStringHandler.cs.


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