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

Update to .NET 8 and new Npgsql version #34

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

nblumhardt
Copy link
Member

No description provided.

var postgresCstr = $"Host={host};Username={username};Password={password};Database=postgres";
using (var postgresConn = new NpgsqlConnection(postgresCstr))
Log.Information("Creating database {Database} on {Host} with owner {Owner} and default options", database, host, username);
using (var createCommand = new NpgsqlCommand($"CREATE DATABASE {database} WITH OWNER = {username} ENCODING = 'UTF8' CONNECTION LIMIT = -1;", postgresConn))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can / should this be parameterized?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth looking into again; IIRC this was not possible last time around.

@nblumhardt nblumhardt merged commit 90f474e into datalust:dev May 14, 2024
1 check passed
@nblumhardt nblumhardt mentioned this pull request May 22, 2024
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