Structure
SQLiteDialect
The
SQLDialect defintions for SQLite.struct SQLiteDialect
Overview
Note
There is only ever one SQLite library in use by SQLiteNIO in any given process (even if there are other versions of the library being used by other things). As such, there is no need for the dialect to concern itself with what version the connection using it “connected” to - it can always just look up the global “runtime version”.
Topics
Initializers
init()Create a newSQLiteDialect.
Instance Properties
var alterTableSyntax: SQLAlterTableSyntaxA description of the syntax the dialect supports forSQLAlterTablequeries.var autoIncrementClause: any SQLExpressionAn expression inserted in a column definition when a.primaryKey(autoincrement: true)constraint is specified for the column.var enumSyntax: SQLEnumSyntaxThe syntax the dialect supports for strongly-typed enumerations.var identifierQuote: any SQLExpressionAn expression (usually anSQLRaw) giving the character(s) used to quote SQL identifiers, such as table and column names.var literalDefault: any SQLExpressionAn expression (usually anSQLRaw) 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.var literalStringQuote: any SQLExpressionAn expression (usually anSQLRaw) giving the character(s) used to quote literal string values which appear in a query, such as enumerator names.var name: StringThe name of the dialect.var supportsAutoIncrement: Booltrueif the dialect supports auto-increment for primary key values when inserting new rows,falseif not.var supportsDropBehavior: Booltrueif the dialect supports thebehavior modifiers forDROPqueries,false` if not.var supportsIfExists: Booltrueif the dialect supports theIF EXISTSmodifier for all types ofDROPqueries (such asSQLDropEnum,SQLDropIndex,SQLDropTable, andSQLDropTrigger) and theIF NOT EXISTSmodifier forSQLCreateTablequeries.var supportsReturning: Booltrueif the dialect supportsRETURNINGsyntax for retrieving output values from DML queries (INSERT,UPDATE,DELETE).var triggerSyntax: SQLTriggerSyntaxVarious flags describing the dialect’s support for specific features ofSQLCreateTriggerandSQLDropTriggerqueries.var unionFeatures: SQLUnionFeaturesA set of feature flags describing the dialect’s support for various forms ofUNIONwithSELECTqueries.var upsertSyntax: SQLUpsertSyntaxThe type ofUPSERTsyntax supported by the dialect.
Instance Methods
func bindPlaceholder(at: Int) -> any SQLExpressionA function which returns an expression to be used as the placeholder for thepositionth bound parameter in a query.func customDataType(for: SQLDataType) -> (any SQLExpression)?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.func literalBoolean(Bool) -> any SQLExpressionA function which returns an SQL expression (usually anSQLRaw) representing the given literal boolean value.func nestedSubpathExpression(in: any SQLExpression, for: [String]) -> (any SQLExpression)?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.
Relationships
Conforms To
SQLKit.SQLDialectSwift.SendableSwift.SendableMetatype