![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Databases.Sql.MySql --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases.Sql.MySql -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases.Sql.MySql" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases.Sql.MySql" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases.Sql.MySql" />Project file
paket add Rig.TUnit.Databases.Sql.MySql --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases.Sql.MySql, 0.1.0-beta.2"
#:package Rig.TUnit.Databases.Sql.MySql@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases.Sql.MySql&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases.Sql.MySql&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Testcontainers-backed MySQL fixture using the official
mysql:8.4image, withMySqlConnectorraw access and Pomelo EF Core extensions.
A production-shape MySQL test fixture. MySqlFixture spins the official
mysql image via Testcontainers, waits for readiness via socket-connect,
and exposes ConnectionString / Database for raw MySqlConnector use or
any EF Core provider the caller installs. Integrates with the
Rig.TUnit.Databases.Sql family contract for cross-engine parity testing.
JSON_TABLE).mysql:8.4, ~600 MB first pull)using MySqlConnector;
using Rig.TUnit.Databases.Sql.MySql.Fixtures;
await using var fx = new MySqlFixture();
await fx.InitializeAsync();
await using var conn = new MySqlConnection(fx.ConnectionString);
await conn.OpenAsync();
| Property | Type | Default | Description |
|---|---|---|---|
ImageTag |
string |
"8.4" |
MySQL Docker image tag |
StartupTimeoutSeconds |
int |
180 |
MySQL init can be slow on first pull |
Username |
string |
"root" |
Default container user |
Password |
string |
"rigtunit" |
Root password |
Database |
string |
"rigtunit" |
Default database created on startup |
Rig.TUnit.Databases.Sql.MySql.Fixtures.MySqlFixtureRig.TUnit.Databases.Sql.MySql.Options.MySqlFixtureOptionsRig.TUnit.Databases.Sql.MySql.Builder.MySqlRigBuilderUseMySql(RigBuilder, …) extensionDefault strategy is one container per fixture (per-class isolation via
TUnit's default lifecycle). For per-test schema isolation, use
IsolationKey.FromExecutionContext() as the schema prefix and create it
in the test's Arrange step via CREATE SCHEMA IF NOT EXISTS.
ReplaceDbContext<T>() throws NotSupportedException — Pomelo
EF Core 10 stable is pending (PR #2019). Install the prerelease or
register your DbContext manually without the helper.See .
utf8mb4 is the default charset; legacy utf8 is an alias for
utf8mb3 and does not store full Unicode.ServerVersion.AutoDetect opens a connection at model-building
time — provide ServerVersion.Create(8, 4, 0, ServerType.MySql) in tests
to keep build synchronous.See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Databases.Sql.MySql:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 65 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 58 | 4/26/2026 |