Skip to content

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