Constraint

Description

class lab_utils.database.Constraint[source]

List of accepted constraints for new columns. The constraints are hard-coded for safety reasons: SQL insertions are potentially dangerous.

Attributes

Constraint.positive

The variable must be greater or equal to 0

Constraint.positive_strict

The variable must be strictly positive