Skip to content

Instance Property

name

The name of the dialect.
var name: String { get }

Discussion

Dialect names were intended to just be human-readable strings, but in reality there are several code paths which rely on checking for specific dialect names. As a result, dialect names are implicitly required to be globally unique (though there’s no way to enforce this). SQLKit currenly recommends dialect names match a regular expression of the form /^[a-z][a-z0-9-]*$/ (starts with a lowercase ASCII letter, remainder consists of only lowercase ASCII letters, ASCII digits, and/or dashes).

No default is provided.

See Also

Basics

  • identifierQuote
    An expression (usually an SQLRaw) giving the character(s) used to quote SQL identifiers, such as table and column names.
  • literalStringQuote
    An expression (usually an SQLRaw) giving the character(s) used to quote literal string values which appear in a query, such as enumerator names.
  • bindPlaceholder(at:)
    A function which returns an expression to be used as the placeholder for the positionth bound parameter in a query.
  • literalBoolean(_:)
    A function which returns an SQL expression (usually an SQLRaw) representing the given literal boolean value.
  • literalDefault
    An expression (usually an SQLRaw) giving the syntax used to express both “use this as the default value” in a column definition and “use the default value for this column” in a value list.