Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.13 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.13 KB

DbUp Snowflake extensions

Nuget Package Quality Gate Status

Snowflake extentions for DbUp, distributed via NuGet

Install

Use Nuget.

Use

...

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();
            ...
        }
    }
}