Link Search Menu Expand Document

MariaDbDbTypeToStringNameResolver


This IResolver<MariaDbType, string> implementation converts a MariaDbType enum value into its equivalent MariaDB SQL type name (e.g. MariaDbType.VarCharVARCHAR, MariaDbType.BigIntBIGINT, MariaDbType.Enum/MariaDbType.SetTEXT, any of the spatial types (Geometry, Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection) → GEOMETRY).

This resolver is not currently wired into MariaDbStatementBuilder — it is a standalone utility you can use directly if you need to map a MariaDbType to its SQL name.

Usability

var resolver = new MariaDbDbTypeToStringNameResolver();
var typeName = resolver.Resolve(MariaDbType.BigInt); // "BIGINT"