Compze.DbPool
0.11.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.DbPool --version 0.11.0-alpha
NuGet\Install-Package Compze.DbPool -Version 0.11.0-alpha
<PackageReference Include="Compze.DbPool" Version="0.11.0-alpha" />
<PackageVersion Include="Compze.DbPool" Version="0.11.0-alpha" />
<PackageReference Include="Compze.DbPool" />
paket add Compze.DbPool --version 0.11.0-alpha
#r "nuget: Compze.DbPool, 0.11.0-alpha"
#:package Compze.DbPool@0.11.0-alpha
#addin nuget:?package=Compze.DbPool&version=0.11.0-alpha&prerelease
#tool nuget:?package=Compze.DbPool&version=0.11.0-alpha&prerelease
Compze.DbPool
Empty databases on demand for integration testing etc. Supports SQL Server, MySql, PostgreSQL and SQLite (Disk and memory mode)
What's in this package?
This package provides database lifecycle management for integration tests:
- Database pooling —
DbPoolmanages a pool of test databases, automatically provisioning and cleaning them between tests
Related packages
| Package | Description |
|---|---|
| Compze.Must | Fluent assertions |
| Compze.xUnitMatrix | xUnit utilities |
License
Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (>= 0.13.0-alpha)
- Compze.Internals.Logging (>= 0.9.0-alpha)
- Compze.Internals.SystemCE (>= 0.18.2-internal)
- Compze.Threading (>= 0.16.2-alpha)
- Compze.Threading.Interprocess (>= 0.16.3-alpha)
- Compze.Underscore (>= 0.6.0-beta)
- MemoryPack (>= 1.21.4)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Compze.DbPool:
| Package | Downloads |
|---|---|
|
Compze.DbPool.MySql
Empty MySQL databases on demand for integration testing etc. |
|
|
Compze.DbPool.MicrosoftSql
Empty SQL Server databases on demand for integration testing etc. |
|
|
Compze.DbPool.PostgreSql
PostgreSQL database pool support for Compze integration testing. |
|
|
Compze.DbPool.Sqlite
Empty SQLite databases on demand for integration testing etc. |
|
|
Compze.DbPool.ServiceClient
How the PostgreSQL, MySQL and SQL Server providers of Compze.DbPool reserve their databases from a DbPool service on the network. Not for direct use: it has no public API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.19.0-alpha | 0 | 12/5/2026 |
| 0.18.1-alpha | 0 | 12/5/2026 |
| 0.18.0-alpha | 0 | 12/5/2026 |
| 0.17.1-alpha | 0 | 12/5/2026 |
| 0.17.0-alpha | 0 | 12/5/2026 |
| 0.16.0-alpha | 0 | 12/5/2026 |
| 0.15.1-alpha | 0 | 12/5/2026 |
| 0.15.0-alpha | 0 | 12/5/2026 |
| 0.14.0-alpha | 0 | 12/5/2026 |
| 0.13.0-alpha | 7 | 12/5/2026 |
| 0.12.0-alpha | 124 | 12/5/2026 |
| 0.11.0-alpha | 67 | 12/5/2026 |
| 0.10.0-alpha | 115 | 12/4/2026 |
| 0.9.0-alpha | 108 | 12/4/2026 |
| 0.8.0-alpha | 178 | 12/3/2026 |
| 0.7.0-alpha | 152 | 12/2/2026 |
| 0.6.0-alpha | 113 | 12/2/2026 |
| 0.5.0-alpha | 139 | 11/29/2026 |
| 0.4.0-alpha | 178 | 11/28/2026 |
| 0.3.1-alpha | 117 | 11/26/2026 |
- **`TestDatabaseSchemas`:** whether a server's test database pool sets up the schemas of the databases it reserves for a root's named domain databases, `SetUpByThePool`, the default of `PgSqlTestDatabases`, `MySqlTestDatabases` and `MsSqlTestDatabases`, or leaves them to their users, as production does, `CreatedByTheirUsers`. A pool that sets them up sets each database up as it reserves it, with the tables of every container that uses the database, which each declares to the pool before then: an exactly-once endpoint as it is built, another container as it creates its schema manager. A container that declares tables a database lacks after its reservation, such as an endpoint of a host started after another host started on the same database, throws, naming `CreatedByTheirUsers`.
- **A test that changes the tables of a database the pool set up fails as its pool is disposed:** the DbPool service, from Compze.DbPool.Service 0.4.0-alpha on, refuses the return, naming the reservation, the database and the changes, and resets the database to no tables. A test that changes its tables on purpose needs `TestDatabaseSchemas.CreatedByTheirUsers`.