NSchema.Core is the engine behind the NSchema CLI, a declarative database schema migration tool. You describe the schema you want using familiar SQL syntax; the library compares it against the current state of your database and runs the SQL to bring it in line.
While this library can be consumed directly, I'd recommend using the CLI tool unless you have a specific reason to build your own harness around the Core package.
dotnet add package NSchema.Core
dotnet add package NSchema.Postgres # or another providerFull documentation lives at nschema.dev. For embedding the engine directly in a .NET application:
- Embedding the engine — a getting-started walkthrough
- Concepts & pipeline — the domain model and how a run flows
- Configuration (C#) — building, running, operations, policies
- Extension points — every interface you can swap or extend
- DDL language and grammar reference
See LICENSE.
