![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Databases.Sql.Sqlite --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases.Sql.Sqlite -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases.Sql.Sqlite" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases.Sql.Sqlite" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases.Sql.Sqlite" />Project file
paket add Rig.TUnit.Databases.Sql.Sqlite --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases.Sql.Sqlite, 0.1.0-beta.2"
#:package Rig.TUnit.Databases.Sql.Sqlite@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases.Sql.Sqlite&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases.Sql.Sqlite&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
In-memory shared-cache SQLite provider — the zero-container fast path for tests that need real SQL semantics.
The fast-path SQL provider. SqliteFixture opens a connection to
Data Source=file::memory:?cache=shared (or a file on disk when isolation
demands it) and holds it open for the fixture's lifetime so the in-memory
database persists across DbContext disposals. No container, no Docker,
no pull — tests using SQLite finish in tens of milliseconds.
Still participates in Rig.TUnit.Databases.Sql's family contract so the
same parity assertions run against SQLite as against the container-backed
providers.
DbType.RowVersion,
schema-aware queries, stored procedures, FOR JSON, full-text search
beyond the FTS5 extension. Use a real Postgres/SqlServer for those.Microsoft.EntityFrameworkCore.Sqlite 10.x (transitive)using Microsoft.EntityFrameworkCore;
using Rig.TUnit.Databases.Sql.Sqlite.Fixtures;
await using var fx = new SqliteFixture();
await fx.InitializeAsync();
var opts = new DbContextOptionsBuilder<TestDb>()
.UseSqlite(fx.Connection)
.Options;
| Property | Type | Default | Description |
|---|---|---|---|
Mode |
SqliteMode |
SharedCacheMemory |
SharedCacheMemory / FilePath / PrivateCacheMemory |
FilePath |
string? |
null |
Only used when Mode == FilePath |
EnableForeignKeys |
bool |
true |
PRAGMA foreign_keys = ON |
JournalMode |
string |
"WAL" |
WAL / DELETE / MEMORY |
Rig.TUnit.Databases.Sql.Sqlite.Fixtures.SqliteFixtureRig.TUnit.Databases.Sql.Sqlite.Options.SqliteFixtureOptionsRig.TUnit.Databases.Sql.Sqlite.Builder.SqliteRigBuilderUseSqlite(RigBuilder, …) extensionSQLite in-memory is isolated by the fixture owning its open connection —
drop the fixture, the DB is gone. For file-mode, the file name includes
IsolationKey so parallel tests do not collide.
SQLite Error 19: 'FOREIGN KEY constraint failed' — defaults to ON
in the fixture; older codebases assuming OFF will see new failures. Set
EnableForeignKeys = false if intentional.DbContext uses, not a new one.See .
decimal round-trip precision is lossy;
use TEXT storage (HasConversion<string>()) for money.[Table("dbo.Orders")] translates to "dbo.Orders" (literal
identifier with dot), not a schema-qualified name.DATETIME is stored as TEXT ISO-8601 by default; timezone round-trip
loses tzinfo unless you use DateTimeOffset.See ;
baseline in benchmarks/baseline-005.json. SQLite is the family's
speed-of-light reference.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Databases.Sql.Sqlite:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 64 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 63 | 4/26/2026 |