Snowflake extentions for DbUp, distributed via NuGet
Use Nuget.
...
using DbUp.Snowflake;
namespace MyNamespace
{
class Program
{
static int Main(string[] args)
{
...
var connectionString = "getThisFromSomewhereSecret";
var upgrader =
DeployChanges.To
.SnowflakeDatabase($"DSN=snowflake;{connectionString}", "JOURNAL_SCHEMA")
.WithScriptsEmbeddedInAssembly(Assembly.GetExecutingAssembly())
.LogToConsole()
.Build();
var result = upgrader.PerformUpgrade();
...
}
}
}