NSchema.Sqlite 5.5.2

dotnet add package NSchema.Sqlite --version 5.5.2
                    
NuGet\Install-Package NSchema.Sqlite -Version 5.5.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NSchema.Sqlite" Version="5.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NSchema.Sqlite" Version="5.5.2" />
                    
Directory.Packages.props
<PackageReference Include="NSchema.Sqlite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NSchema.Sqlite --version 5.5.2
                    
#r "nuget: NSchema.Sqlite, 5.5.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NSchema.Sqlite@5.5.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NSchema.Sqlite&version=5.5.2
                    
Install as a Cake Addin
#tool nuget:?package=NSchema.Sqlite&version=5.5.2
                    
Install as a Cake Tool

NSchema

NSchema.Sqlite

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 DEFAULT and stored generated columns), primary keys, foreign keys, unique constraints, check constraints, indexes, views, and triggers.
  • The schema is always main. Sqlite's primary database is main; declare objects as main.<name> in your DDL. (temp and ATTACHed databases are out of scope.)
  • Native ALTER TABLE only. 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 fire BEFORE or AFTER a 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed