Skip to content

Commit

Permalink
Added constructor with explicit connection factory to PostgresqlDatabase
Browse files Browse the repository at this point in the history
Bumped to 7.0.0-alpha.6
  • Loading branch information
oskardudycz committed Dec 12, 2023
1 parent 528c876 commit 3b84949
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>7.0.0-alpha.5</Version>
<Version>7.0.0-alpha.6</Version>
<LangVersion>12.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
11 changes: 11 additions & 0 deletions src/Weasel.Postgresql/PostgresqlDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ NpgsqlDataSource dataSource
{
}

protected PostgresqlDatabase(
IMigrationLogger logger,
AutoCreate autoCreate,
Migrator migrator,
string identifier,
Func<NpgsqlConnection>? connectionSource
): base(logger, autoCreate, migrator, identifier, connectionSource)
{

}

public async Task<Function?> DefinitionForFunction(DbObjectName function, CancellationToken ct = default)
{
await using var conn = CreateConnection();
Expand Down

0 comments on commit 3b84949

Please sign in to comment.