KSmithDev.Flight.Postgres
0.6.0
dotnet add package KSmithDev.Flight.Postgres --version 0.6.0
NuGet\Install-Package KSmithDev.Flight.Postgres -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.Postgres" 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.Postgres" Version="0.6.0" />
<PackageReference Include="KSmithDev.Flight.Postgres" />
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.Postgres --version 0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KSmithDev.Flight.Postgres, 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.
#addin nuget:?package=KSmithDev.Flight.Postgres&version=0.6.0
#tool nuget:?package=KSmithDev.Flight.Postgres&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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- KSmithDev.Flight (>= 0.6.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
- Npgsql (>= 9.0.3)
-
net9.0
- KSmithDev.Flight (>= 0.6.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
- Npgsql (>= 9.0.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 |
---|---|---|
0.6.0 | 135 | 5/19/2025 |
0.6.0-preview.0.2 | 111 | 5/19/2025 |
0.5.0 | 135 | 5/19/2025 |
0.5.0-preview.0.7 | 107 | 5/19/2025 |
0.5.0-preview.0.6 | 114 | 5/19/2025 |
0.3.0 | 411 | 11/15/2022 |
0.3.0-preview.0.3 | 235 | 11/14/2021 |
0.2.0 | 547 | 8/10/2020 |
0.2.0-preview.0.5 | 301 | 8/10/2020 |
0.2.0-preview.0.4 | 299 | 7/3/2020 |
0.2.0-preview.0.3 | 292 | 7/3/2020 |
0.1.24 | 506 | 6/17/2020 |
0.1.23 | 502 | 6/17/2020 |
0.0.0-preview.0.26 | 298 | 7/3/2020 |