Table of Contents

Class MariaDbDialect

Namespace
eQuantic.Core.Data.MySql
Assembly
eQuantic.Core.Data.MySql.dll

MariaDB's flavour of the MySQL dialect: identical syntax and driver (MySqlConnector), plus INSERT … RETURNING (MariaDB 10.5+) — so database-generated keys are read back into the entities on commit, the capability MySQL itself cannot offer.

public class MariaDbDialect : MySqlDialect
Inheritance
MariaDbDialect
Inherited Members

Properties

System

The OpenTelemetry db.system value (e.g. postgresql, mysql, mssql).

public override string System { get; }

Property Value

string

Methods

InsertSql(string, string, string, string?)

Builds an INSERT, reading the generated key back when returningKey is supplied (RETURNING / OUTPUT INSERTED). The base dialect cannot read keys back — declare a client-generated key, or use a dialect that can.

public override string InsertSql(string quotedTable, string columns, string values, string? returningKey)

Parameters

quotedTable string

The quoted table.

columns string

The quoted column list.

values string

The bound value list.

returningKey string

The quoted generated-key column to read back, or null.

Returns

string