Path: redb/redb.SQLite/Query/SqliteTreeQueryProvider.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.SQLite/Query/SqliteTreeQueryProvider.cs
----
using Microsoft.Extensions.Logging;
using redb.Core.Data;
using redb.Core.Models.Configuration;
using redb.Core.Providers;
using redb.Core.Query;
using redb.Core.Query.Base;
using redb.Core.Query.QueryExpressions;
using redb.Core.Serialization;
using redb.SQLite.Sql;
namespace redb.SQLite.Query;
///
/// SQLite tree query provider implementation.
/// Inherits from TreeQueryProviderBase and provides SQLite-specific components.
///
public partial class SqliteTreeQueryProvider : TreeQueryProviderBase
{
public SqliteTreeQueryProvider(
IRedbContext context,
IRedbObjectSerializer serializer,
ILazyPropsLoader? lazyPropsLoader = null,
RedbServiceConfiguration? configuration = null,
ILogger? logger = null,
ISqlDialect? dialect = null,
string? cacheDomain = null,
ISchemeSyncProvider? schemeSync = null)
: base(context, serializer, dialect ?? new SqliteDialect(), cacheDomain, lazyPropsLoader, configuration, logger, schemeSync)
{
}
///
/// Creates query provider for delegation.
///
protected override IRedbQueryProvider CreateQueryProvider()
{
return new SqliteQueryProvider(_context, _serializer, _lazyPropsLoader, _configuration, _logger, _schemeSync);
}
///
/// Creates tree queryable instance.
///
protected override IRedbQueryable CreateTreeQueryable(TreeQueryContext context)
{
return new SqliteTreeQueryable(this, context, _filterParser, _orderingParser);
}
}