Structure
MySQLDialect
Provides a type conforming to
SQLDialect specifying the syntax used by MySQL.struct MySQLDialect
Topics
Initializers
init()Create a newMySQLDialect.
Instance Properties
alterTableSyntaxA description of the syntax the dialect supports forSQLAlterTablequeries.autoIncrementClauseAn expression inserted in a column definition when a.primaryKey(autoincrement: true)constraint is specified for the column.enumSyntaxThe syntax the dialect supports for strongly-typed enumerations.exclusiveSelectLockExpressionA serialization forSQLLockingClause/update.identifierQuoteAn expression (usually anSQLRaw) giving the character(s) used to quote SQL identifiers, such as table and column names.literalStringQuoteAn expression (usually anSQLRaw) giving the character(s) used to quote literal string values which appear in a query, such as enumerator names.nameThe name of the dialect.sharedSelectLockExpressionA serialization forSQLLockingClause/share.supportsAutoIncrementtrueif the dialect supports auto-increment for primary key values when inserting new rows,falseif not.triggerSyntaxVarious flags describing the dialect’s support for specific features ofSQLCreateTriggerandSQLDropTriggerqueries.unionFeaturesA set of feature flags describing the dialect’s support for various forms ofUNIONwithSELECTqueries.upsertSyntaxThe type ofUPSERTsyntax supported by the dialect.
Instance Methods
bindPlaceholder(at:)A function which returns an expression to be used as the placeholder for thepositionth bound parameter in a query.customDataType(for:)A function which is consulted whenever anSQLDataTypewill be serialized into a query. The dialect may return an expression which will replace the default serialization of the given type. Returningnilcauses the default to be used.literalBoolean(_:)A function which returns an SQL expression (usually anSQLRaw) representing the given literal boolean value.nestedSubpathExpression(in:for:)Given a column name and a path consisting of one or more elements, return an expression appropriate for accessing a value at the given JSON path.normalizeSQLConstraint(identifier:)A function which is consulted whenever a constraint name will be serialized into a query. The dialect must return an expression for an identifer which is unique to the input identifier and is a valid constraint name for the dialect.
Relationships
Conforms To
SQLKit.SQLDialectSwift.SendableSwift.SendableMetatype