LoginLink.Connectors.Database.MySql 0.2.0

dotnet add package LoginLink.Connectors.Database.MySql --version 0.2.0
                    
NuGet\Install-Package LoginLink.Connectors.Database.MySql -Version 0.2.0
                    
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="LoginLink.Connectors.Database.MySql" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LoginLink.Connectors.Database.MySql" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LoginLink.Connectors.Database.MySql" />
                    
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 LoginLink.Connectors.Database.MySql --version 0.2.0
                    
#r "nuget: LoginLink.Connectors.Database.MySql, 0.2.0"
                    
#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 LoginLink.Connectors.Database.MySql@0.2.0
                    
#: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=LoginLink.Connectors.Database.MySql&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LoginLink.Connectors.Database.MySql&version=0.2.0
                    
Install as a Cake Tool

LoginLink.Connectors.Database.MySql

True BYO-DB MySQL storage backend for LoginLink.

A tenant admin points their tenant at a MySQL server they own and operate — Aiven, PlanetScale, RDS, Azure Database for MySQL, or a self-hosted instance (MySQL 8.0+ or a compatible fork). LoginLink never provisions, installs, or hosts the database itself; it only validates and uses a connection string the tenant supplies. SQLite remains the permanent, always-available default — this connector is an additive option, never a replacement.

Scope

Originally Tenant-scope only under LOCK-50 ("host.db/platform.db are permanently SQLite"). Superseded (2026-09-17): Host and Platform scope are both now supported too, so the control plane itself can run directly on MySQL — a fresh /setup install, or a later migration via PlatformScopeMigrationService.

Dialect notes

  • Every integer-ish column is BIGINT, never plain INT — matches the 8-byte width Dapper's dynamic-row (long)row.x casts expect.
  • Every TEXT column that's part of a PRIMARY KEY, UNIQUE, or index is VARCHAR(n) instead — MySQL/InnoDB can't index a TEXT/BLOB column without an explicit prefix length. Columns that are never indexed stay TEXT.
  • Indexes are declared inline inside each table's own CREATE TABLE IF NOT EXISTS rather than as separate CREATE INDEX statements — MySQL has no CREATE INDEX IF NOT EXISTS, so this sidesteps the idempotency problem entirely instead of needing a try/catch-per-index helper.
  • ENGINE=InnoDB is explicit on every table, since this schema depends on real foreign-key enforcement (MyISAM silently ignores FOREIGN KEY clauses).

Registration

builder.Services.AddMySqlStorage();

// AFTER app = builder.Build() (not inside ConnectorRegistry's own factory —
// see PostgresqlDatabaseConnector's registration in Program.cs for why):
var mysql = app.Services.GetRequiredService<MySqlDatabaseConnector>();
connectorRegistry.Register((IDatabaseConnector)mysql);
connectorRegistry.RegisterSchemaProvisioner(mysql.Name,
    app.Services.GetRequiredService<MySqlSchemaProvisioner>());

Connection details

Read per-tenant via ITenantStorageCredentialsReader, never from appsettings.json — each tenant's own host/port/database/username/password/SSL mode are stored (encrypted) in platform.db.tenant_storage_credentials.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.2.0 47 9/17/2026
0.1.0 148 7/31/2026