Skip to content

Case

SQLColumnConstraintAlgorithm.generated(_:)

A GENERATED column constraint and its associated data-generating expression.
case generated(any SQLExpression)

Discussion

This can be considered either an “informative” constraint or a validation constraint depending on context.

Only STORED generated columns are currently supported.

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