CodeLogic.Data.MySql
5.0.116-preview
dotnet add package CodeLogic.Data.MySql --version 5.0.116-preview
NuGet\Install-Package CodeLogic.Data.MySql -Version 5.0.116-preview
<PackageReference Include="CodeLogic.Data.MySql" Version="5.0.116-preview" />
<PackageVersion Include="CodeLogic.Data.MySql" Version="5.0.116-preview" />
<PackageReference Include="CodeLogic.Data.MySql" />
paket add CodeLogic.Data.MySql --version 5.0.116-preview
#r "nuget: CodeLogic.Data.MySql, 5.0.116-preview"
#:package CodeLogic.Data.MySql@5.0.116-preview
#addin nuget:?package=CodeLogic.Data.MySql&version=5.0.116-preview&prerelease
#tool nuget:?package=CodeLogic.Data.MySql&version=5.0.116-preview&prerelease
CodeLogic.Data.MySql
Status: 5.0 preview.
The MySQL and MariaDB provider for CodeLogic.Data, built on MySqlConnector.
dotnet add package CodeLogic.Data.MySql
- With the CodeLogic runtime: load
MySqlDataLibrarynext toDataLibrary, and set"provider": "mysql"on a connection inconfig.data.json. - Without it: pass
MySqlDataProvider.InstancetoDatabase.Create.
Bulk copy uses MySqlBulkCopy (set mySql.allowLoadLocalInfile and the server's local_infile); slow-query plans use EXPLAIN FORMAT=TREE; replica lag comes from SHOW REPLICA STATUS; failoverHosts enables driver failover. Extras: db.MySql.OptimizeTableAsync<T>(), AnalyzeTableAsync<T>().
Documentation: Providers.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- CodeLogic (>= 5.0.0-preview && < 6.0.0)
- CodeLogic.Data (>= 5.0.116-preview && < 6.0.0)
- MySqlConnector (>= 2.6.2)
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 |
|---|---|---|
| 5.0.116-preview | 0 | 11/1/2026 |
| 5.0.115-preview | 89 | 11/1/2026 |
| 5.0.114-preview | 29 | 10/31/2026 |
| 5.0.113-preview | 30 | 10/31/2026 |
# Changelog
## 5.0 (unreleased)
### Added
- New package: the MySQL and MariaDB provider for CodeLogic.Data (CL.Data), built on MySqlConnector. Part of the CL.Data
database framework that replaces CL.MySQL2 in the CodeLogic 5 line. Targets .NET 11 and CodeLogic 5.
- `MySqlDatabaseAdmin` (information_schema.SCHEMATA; CREATE DATABASE with the connection charset/collation); batched deletes with DELETE ... LIMIT.
### Fixed
- `OptimizeTableAsync` and `AnalyzeTableAsync` run on the primary as a side effect (`SqlIntent.SideEffect`). Before, they went through the read path and could be sent to a replica or retried.
- The schema introspector always reads the primary.