Compze.DbPool.MySql
0.9.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.DbPool.MySql --version 0.9.0-alpha
NuGet\Install-Package Compze.DbPool.MySql -Version 0.9.0-alpha
<PackageReference Include="Compze.DbPool.MySql" Version="0.9.0-alpha" />
<PackageVersion Include="Compze.DbPool.MySql" Version="0.9.0-alpha" />
<PackageReference Include="Compze.DbPool.MySql" />
paket add Compze.DbPool.MySql --version 0.9.0-alpha
#r "nuget: Compze.DbPool.MySql, 0.9.0-alpha"
#:package Compze.DbPool.MySql@0.9.0-alpha
#addin nuget:?package=Compze.DbPool.MySql&version=0.9.0-alpha&prerelease
#tool nuget:?package=Compze.DbPool.MySql&version=0.9.0-alpha&prerelease
Compze.DbPool.MySql
Empty MySQL databases on demand for integration testing etc.
MySQL support for Compze.DbPool.
A pool
IDbPool.MySql() creates a pool whose databases come from the DbPool service the test project's build property CompzeDbPoolService
names, else the one on this machine. Each reservation name gets an empty database of its own; disposing the pool returns them.
using Compze.DbPool;
using Compze.DbPool.MySql;
using var pool = IDbPool.MySql();
var connectionString = pool.ConnectionStringFor("orders");
For Compze's named domain databases, use Compze.Sql.MySql.Testing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.DbPool (= 0.12.0-alpha)
- Compze.DbPool.ServiceClient (= 0.7.0-alpha)
- MySqlConnector (>= 2.6.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Compze.DbPool.MySql:
| Package | Downloads |
|---|---|
|
Compze.Sql.MySql.Testing
Test databases from a DbPool for Compze's named MySQL domain databases: MySqlTestDatabases() has a root container and its clones use them. |
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.9.2-alpha | 8 | 12/5/2026 |
| 0.9.1-alpha | 37 | 12/5/2026 |
| 0.9.0-alpha | 87 | 12/5/2026 |
| 0.8.0-alpha | 59 | 12/5/2026 |
| 0.7.11-alpha | 53 | 12/5/2026 |
| 0.7.10-alpha | 48 | 12/5/2026 |
| 0.7.9-alpha | 53 | 12/4/2026 |
| 0.7.8-alpha | 58 | 12/4/2026 |
| 0.7.7-alpha | 69 | 12/4/2026 |
| 0.7.6-alpha | 94 | 12/4/2026 |
| 0.7.5-alpha | 64 | 12/4/2026 |
- **`IDbPool.MySql()` creates a pool** of databases from the DbPool service, with an optional reservation length, and an optional callback that runs with each database's connection string before the pool gives it back: for a process that connects through connection strings of its own, derived from that one, to close their idle connections, as the pool does in the driver's pool for the connection string itself.
- **`MySqlTestDatabases()` moved to Compze.Sql.MySql.Testing,** and `MySqlDbPoolSqlLayer()` is gone with the container registration. Compze.DbPool.MySql depends on DbPool, its service client and MySqlConnector alone, no longer on Compze.Sql.
- **Requires exact versions of the Compze packages whose internals it uses:** Compze.DbPool 0.12.0-alpha (was 0.11.0-alpha), Compze.DbPool.ServiceClient 0.7.0-alpha (was 0.6.0-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.