SqlScriptRunner 0.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package SqlScriptRunner --version 0.1.4
NuGet\Install-Package SqlScriptRunner -Version 0.1.4
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="SqlScriptRunner" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SqlScriptRunner --version 0.1.4
#r "nuget: SqlScriptRunner, 0.1.4"
#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.
// Install SqlScriptRunner as a Cake Addin
#addin nuget:?package=SqlScriptRunner&version=0.1.4

// Install SqlScriptRunner as a Cake Tool
#tool nuget:?package=SqlScriptRunner&version=0.1.4

SQL SCRIPT RUNNER

SQL script runner is a package, wich run script from concrete folder and subfolder. You can use it when you have database firs project and before start server you want to update your database.

Setup model fields

  • ConnectionString: Connection string to database,
  • FolderPath: Path to root folder with sql script
  • DeployScriptsTableName: Name of table where will be keep all deployed scripts
  • DataBaseType: Typeof database (Postgresql, Mssql, Mysql)

Example of use

var scriptRunner = SqlScriptRunner.GetScriptRunner(new SetupModel
{
    ConnectionString = "Server=localhost; Database=tests; User Id=sa; Password=pa55w0rd!;TrustServerCertificate=true",
    FolderPath = "/mssql/scripts",
    DataBaseType = DataBaseTypeEnum.Mssql
}).RunDeploy();

This example will be run all scripts (*.sql file) from folder /mssql/scripts folder and subfolders

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on SqlScriptRunner:

Package Downloads
SqlScriptRunner.PostgreSQL

Package Description

SqlScriptRunner.MySql

Package Description

SqlScriptRunner.MSSql

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.2 306 4/1/2023
2.0.0 283 4/1/2023
1.0.0 215 3/4/2023
0.2.0 379 10/6/2022
0.1.5 325 10/5/2022
0.1.4 378 9/7/2022
0.1.3 351 9/7/2022
0.1.2 370 9/7/2022
0.1.1 386 9/4/2022
0.1.0 373 9/4/2022