DBAClientX.SQLite
1.0.8
dotnet add package DBAClientX.SQLite --version 1.0.8
NuGet\Install-Package DBAClientX.SQLite -Version 1.0.8
<PackageReference Include="DBAClientX.SQLite" Version="1.0.8" />
<PackageVersion Include="DBAClientX.SQLite" Version="1.0.8" />
<PackageReference Include="DBAClientX.SQLite" />
paket add DBAClientX.SQLite --version 1.0.8
#r "nuget: DBAClientX.SQLite, 1.0.8"
#:package DBAClientX.SQLite@1.0.8
#addin nuget:?package=DBAClientX.SQLite&version=1.0.8
#tool nuget:?package=DBAClientX.SQLite&version=1.0.8
DbaClientX.SQLite
SQLite provider for DbaClientX (Microsoft.Data.Sqlite). Supports non-query, scalar, queries, streaming, transactions, bulk insert.
Also includes SQLite maintenance helpers for online database backup, WAL checkpointing, PRAGMA optimize, and graceful shutdown preparation.
- Target Frameworks:
net472(win-x64),netstandard2.1,net8.0,net10.0 - NuGet:
DBAClientX.SQLite
Install
dotnet add package DBAClientX.SQLite
Quick examples
Query table:
var sq = new DBAClientX.SQLite();
var result = sq.Query(
database: "app.db",
query: "SELECT Id, Name FROM Users ORDER BY Id"
);
Stream query (netstandard2.1+/net8.0):
await foreach (DataRow row in sq.QueryStreamAsync(
database: "app.db",
query: "SELECT Id, Name FROM Users ORDER BY Id",
cancellationToken: ct))
{
// consume row
}
Typed mapped query:
var rows = await sq.QueryAsListAsync(
database: "app.db",
query: "SELECT Id, Name FROM Users ORDER BY Id",
map: row => new UserRow(
Id: row.GetInt32(row.GetOrdinal("Id")),
Name: row.GetString(row.GetOrdinal("Name"))),
cancellationToken: ct);
For larger result sets, use QueryStreamAsync<T> with the same mapper shape to avoid buffering all rows.
Execute against a full connection string without losing provider options:
var connectionString = new SqliteConnectionStringBuilder
{
DataSource = "app.db",
Mode = SqliteOpenMode.ReadWrite,
Cache = SqliteCacheMode.Shared,
Pooling = false,
DefaultTimeout = 15
}.ConnectionString;
await sq.ExecuteNonQueryWithConnectionStringAsync(
connectionString,
"UPDATE Users SET Name = @name WHERE Id = @id",
new Dictionary<string, object?> { ["@name"] = "Alice", ["@id"] = 1 },
cancellationToken: ct);
SQLiteGeneric.GenericExecutors.ExecuteSqlAsync accepts either a path or a full connection string. Full connection strings preserve mode, cache, pooling, timeout, password, foreign-key, trigger, and VFS settings. File paths containing = remain valid paths.
Graceful shutdown maintenance:
var sq = new DBAClientX.SQLite();
await sq.PrepareForShutdownAsync(
database: "app.db",
options: new SqliteShutdownMaintenanceOptions
{
CheckpointMode = SqliteCheckpointMode.Truncate,
OptimizeAfterCheckpoint = true
});
Backup before maintenance:
var sq = new DBAClientX.SQLite();
sq.BackupDatabase("app.db", "backups/app.db");
See also
- Core mapping + invoker:
DBAClientX.Core
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- DBAClientX.Core (>= 1.0.8)
- Microsoft.Data.Sqlite (>= 10.0.10)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.5)
- SQLitePCLRaw.core (>= 3.0.5)
-
.NETStandard 2.1
- DBAClientX.Core (>= 1.0.8)
- Microsoft.Data.Sqlite (>= 10.0.10)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.5)
- SQLitePCLRaw.core (>= 3.0.5)
-
net10.0
- DBAClientX.Core (>= 1.0.8)
- Microsoft.Data.Sqlite (>= 10.0.10)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.5)
- SQLitePCLRaw.core (>= 3.0.5)
-
net8.0
- DBAClientX.Core (>= 1.0.8)
- Microsoft.Data.Sqlite (>= 10.0.10)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.5)
- SQLitePCLRaw.core (>= 3.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DBAClientX.SQLite:
| Repository | Stars |
|---|---|
|
EvotecIT/EventViewerX
Windows Event Log tooling for PowerShell and .NET: typed queries, reporting, export, WEC, automation, and the PSEventViewer module.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.8 | 966 | 8/21/2026 |
| 0.15.0 | 115 | 8/20/2026 |
| 0.14.0 | 298 | 8/14/2026 |
| 0.13.0 | 1,279 | 8/2/2026 |
| 0.12.0 | 118 | 8/2/2026 |
| 0.11.0 | 1,559 | 7/12/2026 |
| 0.10.0 | 525 | 6/28/2026 |
| 0.9.0 | 161 | 6/21/2026 |
| 0.8.0 | 1,622 | 6/20/2026 |
| 0.7.0 | 1,407 | 6/19/2026 |
| 0.6.0 | 943 | 5/25/2026 |
| 0.5.0 | 137 | 4/12/2026 |
| 0.4.0 | 128 | 4/11/2026 |
| 0.3.0 | 551 | 3/28/2026 |
| 0.2.0 | 6,167 | 3/10/2026 |
| 0.1.1 | 4,521 | 2/10/2026 |
| 0.1.0 | 603 | 2/6/2026 |