sqlct 0.2.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global sqlct --version 0.2.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local sqlct --version 0.2.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=sqlct&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package sqlct --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SQL Change Tracker (sqlct)
sqlct is a cross-platform CLI for state-based SQL Server schema change tracking.
It focuses on deterministic output and schema-folder workflows that are Git and CI/CD friendly.
Purpose
- Manage SQL schema changes as code using a schema folder as the source of truth.
- Keep scripting output deterministic for stable diffs and repeatable automation.
- Support compatibility-oriented workflows for teams with existing schema-folder conventions.
Principles
- State-based workflow.
- Deterministic scripting.
- Explicit, reversible commands.
- Cross-platform usage on Windows, macOS, and Linux.
- Git-agnostic operation.
Current Commands
sqlct init [--project-dir <path>]
sqlct config [--project-dir <path>]
sqlct data track <pattern> [--project-dir <path>]
sqlct data untrack <pattern> [--project-dir <path>]
sqlct data list [--project-dir <path>]
sqlct status [--project-dir <path>] [--target <db|folder>] [--no-progress]
sqlct diff [--project-dir <path>] [--target <db|folder>] [--object <selector>] [--no-progress]
sqlct pull [--project-dir <path>] [--no-progress]
Current runtime scope for status, diff, and pull covers:
TableViewStoredProcedureFunctionSequenceSchemaRoleUserSynonymUserDefinedTypePartitionFunctionPartitionScheme
When data.trackedTables is configured, status, diff, and pull also process TableData artifacts for those explicit tracked tables.
--object selectors support:
schema.namefor schema-scoped objectsnamefor schema-less objectstype:nameandtype:schema.namefor explicit selectiondata:schema.namefor tracked table-data scripts
Selective Data Scripting
Tracked-table data scripting is configuration-driven.
sqlct data trackmatches user tables in the current database and asks for confirmation before updatingdata.trackedTables.sqlct data untrackpreviews tracked matches and asks for confirmation before removing them.sqlct data listshows the currently tracked tables from config.sqlct pullcreates, updates, and deletesData/Schema.Table_Data.sqlfiles for tracked tables.sqlct statusandsqlct diffincludeTableDataalongside schema artifacts, with separate schema/data summaries instatus.
Example:
sqlct data track Sales.* --project-dir ./schema
sqlct data list --project-dir ./schema
sqlct diff --project-dir ./schema --object data:Sales.Customer
sqlct pull --project-dir ./schema
Install
Global:
dotnet tool install --global sqlct
Local (tool manifest):
dotnet new tool-manifest
dotnet tool install --local sqlct
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.