dotnet-sqldb 0.1.4

.NET Global Tool using e.g. DbUp for SqlServer to manage migration scripts.

dotnet tool install --global dotnet-sqldb --version 0.1.4
This package contains a .NET Core Global Tool you can call from the shell/command line.

Global installation

dotnet tool install -g dotnet-sqldb

Usage either: dotnet-sqldb or dotnet sqldb

Help

dotnet-sqldb --help

EnsureDb

Ensures that the specified DB exists. If it does not exist, it gets created.

dotnet-sqldb ensure [--connectionstring|-c] mycnstring

DropDb

Drops the specified database if it exists.

dotnet-sqldb drop [--connectionstring|-c] mycnstring

UpgradeDb

Upgrades the database by applying SQL-scripts using DbUp

dotnet-sqldb up [--connectionstring|-c] mycnstring [--assembly|-a] myassembly_with_embedded_scripts

Global installation

dotnet tool install -g dotnet-sqldb

Usage either: dotnet-sqldb or dotnet sqldb

Help

dotnet-sqldb --help

EnsureDb

Ensures that the specified DB exists. If it does not exist, it gets created.

dotnet-sqldb ensure [--connectionstring|-c] mycnstring

DropDb

Drops the specified database if it exists.

dotnet-sqldb drop [--connectionstring|-c] mycnstring

UpgradeDb

Upgrades the database by applying SQL-scripts using DbUp

dotnet-sqldb up [--connectionstring|-c] mycnstring [--assembly|-a] myassembly_with_embedded_scripts

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
0.1.4 42 3/7/2019
0.1.3 46 3/7/2019