Skip to content

Case

SQLColumnConstraintAlgorithm.default(_:)

A DEFAULT column constraint, specifying a default column value.
case `default`(any SQLExpression)

Discussion

This is considered an “informative” constraint, describing the behavior of the column’s data, rather than a validation constraint limiting the data itself.

This is a column-only data constraint; it cannot be specified at the table level.