KSmithDev.Flight.SqlServer
0.6.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package KSmithDev.Flight.SqlServer --version 0.6.0
NuGet\Install-Package KSmithDev.Flight.SqlServer -Version 0.6.0
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="KSmithDev.Flight.SqlServer" Version="0.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KSmithDev.Flight.SqlServer" Version="0.6.0" />
<PackageReference Include="KSmithDev.Flight.SqlServer" />
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 KSmithDev.Flight.SqlServer --version 0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KSmithDev.Flight.SqlServer, 0.6.0"
#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 KSmithDev.Flight.SqlServer@0.6.0
#: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=KSmithDev.Flight.SqlServer&version=0.6.0
#tool nuget:?package=KSmithDev.Flight.SqlServer&version=0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Flight
Flight is an easy to use framework for applying SQL to a database deterministically. You create a migration plan and Flight will take care of the rest.
Look how easy it is to use:
// generate a logger factory
using var loggerFactory = LoggerFactory.Create(b =>
{
b.AddConsole();
b.SetMinimumLevel(LogLevel.Trace);
});
// build a migration
var migration = new MigrationBuilder()
// set the connection string to the target database
.UseSqlServer(@"(LocalDB)\MSSQLLocalDB", database: "MigrationTest")
// using one transaction will execute all migration scripts inside a transaction
.UseOneTransaction()
// scripts can be loaded from the file system and will be only executed once
.AddMigrationScripts(
new FileSystemScriptProvider(new[] { @"SqlServer\Migrations" }) {
Recursive = true, // search all subdirectories
Sorted = true }) // sort the scripts by filename prior to execution
// idempotent scripts will be run when the file changes
// this is great for views, stored procedures, and function
.AddMigrationScripts(
new FileSystemScriptProvider(new[] { @"SqlServer\Views" }) {
Idempotent = true })
.Build(loggerFactory);
// begin the migration
await migration.MigrateAsync();
Supported Databases
- SQL Server
- SQLite
- PostgreSQL
- MySQL
Installation
Install Flight by running:
# for MS SQL Server
dotnet add package KSmithDev.Flight.SqlServer
# for Sqlite
dotnet add package KSmithDev.Flight.Sqlite
# for PostgreSQL
dotnet add package KSmithDev.Flight.Postgres
# for MySql
dotnet add package KSmithDev.Flight.MySql
Contribute
- Issue Tracker: github.com/ksmithdev/Flight/issues
- Source Code: github.com/ksmithdev/Flight
License
The project is licensed under the Apache License 2.0.
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 is compatible. 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 was computed. 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. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- KSmithDev.Flight (>= 0.6.0)
- Microsoft.Data.SqlClient (>= 6.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
-
net8.0
- KSmithDev.Flight (>= 0.6.0)
- Microsoft.Data.SqlClient (>= 6.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
-
net9.0
- KSmithDev.Flight (>= 0.6.0)
- Microsoft.Data.SqlClient (>= 6.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
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 |
---|---|---|
0.6.0 | 159 | 5/19/2025 |
0.6.0-preview.0.2 | 129 | 5/19/2025 |
0.5.0 | 162 | 5/19/2025 |
0.5.0-preview.0.7 | 119 | 5/19/2025 |
0.5.0-preview.0.6 | 127 | 5/19/2025 |
0.3.0 | 417 | 11/15/2022 |
0.3.0-preview.0.3 | 245 | 11/14/2021 |
0.2.0 | 560 | 8/10/2020 |
0.2.0-preview.0.5 | 343 | 8/10/2020 |
0.2.0-preview.0.4 | 317 | 7/3/2020 |
0.2.0-preview.0.3 | 333 | 7/3/2020 |
0.1.24 | 550 | 6/17/2020 |
0.1.23 | 559 | 6/17/2020 |
0.1.22 | 510 | 6/16/2020 |
0.1.0-alpha1 | 426 | 5/11/2020 |
0.0.0-preview.0.26 | 341 | 7/3/2020 |