Compze.Sql.PostgreSql.Testing 0.1.2-alpha

Prefix Reserved
This is a prerelease version of Compze.Sql.PostgreSql.Testing.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Compze.Sql.PostgreSql.Testing --version 0.1.2-alpha
                    
NuGet\Install-Package Compze.Sql.PostgreSql.Testing -Version 0.1.2-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Compze.Sql.PostgreSql.Testing" Version="0.1.2-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Compze.Sql.PostgreSql.Testing" Version="0.1.2-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Compze.Sql.PostgreSql.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Compze.Sql.PostgreSql.Testing --version 0.1.2-alpha
                    
#r "nuget: Compze.Sql.PostgreSql.Testing, 0.1.2-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Compze.Sql.PostgreSql.Testing@0.1.2-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Compze.Sql.PostgreSql.Testing&version=0.1.2-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compze.Sql.PostgreSql.Testing&version=0.1.2-alpha&prerelease
                    
Install as a Cake Tool

Compze.Sql.PostgreSql.Testing

Test databases for Compze's named PostgreSQL domain databases, from a DbPool.

Named domain databases in tests

PgSqlTestDatabases() on the root registrar supplies pooled databases to named domain database declarations. Select the pool before declaring a named domain database. A late selection fails during registration. Pass a reservation length or use the pool's default. Clones reuse the root's reservations. By default the pool sets each database's schema up as it reserves it, with the tables the containers that use it declare; TestDatabaseSchemas.CreatedByTheirUsers leaves them to the containers, as production does.

using Compze.Sql.PostgreSql.Testing;
using Compze.Sql.PostgreSql.Wiring;

IContainerBuilder builder = new MicrosoftContainerBuilder();
builder.Registrar.PgSqlTestDatabases();
using var root = builder.Build();

var hub = root.CreateCloneContainerBuilder();
hub.Registrar.PgSqlDomainDatabase("Hub");
using var container = hub.Build();
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0-alpha 0 12/5/2026
0.3.1-alpha 0 12/5/2026
0.3.0-alpha 0 12/5/2026
0.2.0-alpha 0 12/5/2026
0.1.4-alpha 0 12/5/2026
0.1.3-alpha 0 12/5/2026
0.1.2-alpha 0 12/5/2026
0.1.1-alpha 50 12/5/2026
0.1.0-alpha 65 12/5/2026

- **Built against DbPool 0.14.0-alpha, the first release from DbPool's own repository,** [mlidbom/Compze.DbPool](https://github.com/mlidbom/Compze.DbPool), where its packages are now released together at one version. Nothing else changed.
- **Requires newer minor versions of other Compze packages:** Compze.DbPool 0.14.0-alpha (was 0.12.0-alpha), Compze.DbPool.PostgreSql 0.14.0-alpha (was 0.8.0-alpha), Compze.DependencyInjection 0.14.0-alpha (was 0.13.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.
- **Requires exact versions of the Compze packages whose internals it uses:** Compze.Sql.Testing 0.1.2-alpha (was 0.1.1-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.