Skip to content

Instance Property

dialect

The descriptor for the dialect of SQL supported by the given database.
var dialect: any SQLDialect { get }

Discussion

The dialect must be provided via a type conforming to the SQLDialect protocol. It is permitted for different connections to the same database to report different dialects, although it’s unclear how this would be useful in practice; a dialect that differs based on database version should differentiate based on the version property instead.

See Also

Properties

  • logger
    The Logger used for logging all operations relating to a given database.
  • eventLoop
    The EventLoop used for asynchronous operations on a given database.
  • version
    The version number the database reports for itself.
  • queryLogLevel
    The logging level used for reporting queries run on the given database to the database’s logger. Defaults to .debug.