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. | |
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.
Fauna.QueryStringHandler.QueryStringHandler | ( | int | literalLength, |
int | formattedCount | ||
) |
Initializes a new instance of the QueryStringHandler struct.
literalLength | The estimated length of the literals in the interpolated string. |
formattedCount | The number of format items in the interpolated string. |
Definition at line 18 of file QueryStringHandler.cs.
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.
value | The value to append. |
Definition at line 36 of file QueryStringHandler.cs.
void Fauna.QueryStringHandler.AppendLiteral | ( | string | value | ) |
Appends a literal string to the query.
value | The literal string to append. |
Definition at line 27 of file QueryStringHandler.cs.
Query Fauna.QueryStringHandler.Result | ( | ) |
Constructs and returns a Query instance representing the current state of the handler.
Definition at line 52 of file QueryStringHandler.cs.