Instance Property
autoIncrementClause
An expression inserted in a column definition when a
.primaryKey(autoincrement: true) constraint is specified for the column.var autoIncrementClause: any SQLExpression { get }
Discussion
The expression will be included immediately after PRIMARY KEY in the resulting SQL.
This property is ignored when supportsAutoIncrement is false, or when autoIncrementFunction is not nil.
No default is provided.
See Also
Syntax Indicators
enumSyntaxThe syntax the dialect supports for strongly-typed enumerations.triggerSyntaxVarious flags describing the dialect’s support for specific features ofSQLCreateTriggerandSQLDropTriggerqueries.alterTableSyntaxA description of the syntax the dialect supports forSQLAlterTablequeries.autoIncrementFunctionAn expression inserted in a column definition when aSQLColumnConstraintAlgorithm.primaryKey(autoIncrement:)orSQLTableConstraintAlgorithm.primaryKey(columns:)constraint is specified for the column.upsertSyntaxThe type ofUPSERTsyntax supported by the dialect.sharedSelectLockExpressionA serialization forSQLLockingClause.share.exclusiveSelectLockExpressionA serialization forSQLLockingClause.update.