Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# API #21

Merged
merged 6 commits into from
Jul 9, 2019
Merged

C# API #21

merged 6 commits into from
Jul 9, 2019

Conversation

nblumhardt
Copy link
Member

@nblumhardt nblumhardt commented Jul 9, 2019

I want to use Piggy programmatically for a quick-and-dirty F5 deploy/run experience. This PR exposes the minimal types needed for this:

// dotnet add package Datalust.Piggy
var connectionString = // Npgsql connection string
using (var connection = DatabaseConnector.Connect(connectionString))
{
    UpdateSession.ApplyChangeScripts(connection, "./db", new Dictionary<string, string>());
}

@nblumhardt nblumhardt merged commit d08d221 into datalust:dev Jul 9, 2019
@nblumhardt nblumhardt mentioned this pull request Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants