1using System.Diagnostics.CodeAnalysis;
11public abstract class QuerySource : IQuerySource
14 internal DataContext Ctx {
get;
private protected set; }
16 internal Pipeline Pipeline {
get;
private protected set; }
18 internal void SetContext(DataContext ctx)
23 internal void SetQuery<TElem>(
Query query)
25 Pipeline =
new Pipeline(
PipelineMode.Query, query, typeof(TElem),
false,
null,
null);
29public partial class QuerySource<T> : QuerySource, IQuerySource<T>
31 internal QuerySource(DataContext ctx, Pipeline pl)
39 internal QuerySource() { }
49 var pe = Pipeline.GetExec(Ctx);
50 return pe.PagedResult<T>(queryOptions, cancel);
65 public IEnumerable<T>
ToEnumerable() =>
new QuerySourceEnumerable(
this);
Represents the options for customizing Fauna queries.
IEnumerable< T > ToEnumerable()
Executes a query.
IAsyncEnumerable< Page< T > > PaginateAsync(QueryOptions? queryOptions=null, CancellationToken cancel=default)
Executes a query with pagination.
IAsyncEnumerable< T > ToAsyncEnumerable(CancellationToken cancel=default)
Executes a query asynchronously.
Represents the abstract base class for constructing FQL queries.
PipelineMode
The mode of the query pipeline.