Class MariaDbDialect
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
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
quotedTablestringThe quoted table.
columnsstringThe quoted column list.
valuesstringThe bound value list.
returningKeystringThe quoted generated-key column to read back, or
null.