NSchema.Sqlite
5.5.2
dotnet add package NSchema.Sqlite --version 5.5.2
NuGet\Install-Package NSchema.Sqlite -Version 5.5.2
<PackageReference Include="NSchema.Sqlite" Version="5.5.2" />
<PackageVersion Include="NSchema.Sqlite" Version="5.5.2" />
<PackageReference Include="NSchema.Sqlite" />
paket add NSchema.Sqlite --version 5.5.2
#r "nuget: NSchema.Sqlite, 5.5.2"
#:package NSchema.Sqlite@5.5.2
#addin nuget:?package=NSchema.Sqlite&version=5.5.2
#tool nuget:?package=NSchema.Sqlite&version=5.5.2
NSchema.Sqlite
Sqlite provider for NSchema, the declarative database schema migration tool for .NET. It plugs Sqlite introspection and DDL generation into NSchema via Microsoft.Data.Sqlite.
Most users should use the NSchema CLI, which already includes this provider. Add this package directly only when embedding the engine in your own application.
Installation
dotnet add package NSchema.Core
dotnet add package NSchema.Sqlite
Scope
Sqlite has a deliberately small surface, so this provider models what Sqlite actually supports:
- Supported: tables, columns (with
DEFAULTand stored generated columns), primary keys, foreign keys, unique constraints, check constraints, indexes, views, and triggers. - The schema is always
main. Sqlite's primary database ismain; declare objects asmain.<name>in your DDL. (tempandATTACHed databases are out of scope.) - Native
ALTER TABLEonly. Create/drop/rename tables and columns, and create/drop indexes/views, are applied directly. Operations Sqlite cannot do in place — changing a column's type, nullability or default, or adding/dropping a constraint on an existing table — require a full table rebuild and are currently reported as clear plan errors rather than silently rebuilding. - Triggers carry an inline body, written as
CREATE TRIGGER … ON main.t AS $$ BEGIN … END $$, and fireBEFOREorAFTERa single statement event. - Not supported (Sqlite has no equivalent): schemas other than
main, sequences, enums, domains, composite types, stored functions/procedures,GRANTs, and materialized views. These are reported as plan errors. - Comments are not persisted. Sqlite has no
COMMENT ON, so documentation comments are skipped with a warning when rendering SQL.
Column types are emitted using NSchema's canonical type names (e.g. bigint, varchar(255), decimal(18,2)); Sqlite applies its normal type affinity and preserves the declared name, so a schema round-trips without phantom drift.
Documentation
Full documentation lives at nschema.dev:
License
See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Data.Sqlite (>= 10.0.10)
- NSchema.Core (>= 5.10.2)
- SQLitePCLRaw.lib.e_sqlite3 (>= 3.50.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.5.2 | 147 | 8/13/2026 |
| 5.5.1 | 102 | 8/12/2026 |
| 5.5.0 | 119 | 8/11/2026 |
| 5.4.0 | 106 | 8/9/2026 |
| 5.3.1 | 138 | 8/4/2026 |
| 5.3.0 | 114 | 8/3/2026 |
| 5.2.0 | 118 | 8/3/2026 |
| 5.1.0 | 125 | 8/2/2026 |
| 5.0.0 | 133 | 8/1/2026 |
| 5.0.0-beta.5 | 66 | 7/30/2026 |
| 5.0.0-beta.4 | 66 | 7/28/2026 |
| 5.0.0-beta.3 | 67 | 7/26/2026 |
| 5.0.0-beta.2 | 64 | 7/26/2026 |
| 5.0.0-beta.1 | 64 | 7/26/2026 |
| 5.0.0-alpha.8 | 62 | 7/25/2026 |
| 5.0.0-alpha.7 | 63 | 7/24/2026 |
| 5.0.0-alpha.6 | 67 | 7/23/2026 |
| 5.0.0-alpha.5 | 69 | 7/21/2026 |
| 5.0.0-alpha.4 | 54 | 7/21/2026 |
| 5.0.0-alpha.2 | 67 | 7/21/2026 |
