dbldatagen.constraints.literal_relation_constraint module
This module defines the ScalarInequality class
- class LiteralRelation(columns, relation, value)[source]
Bases:
NoPrepareTransformMixin
,Constraint
LiteralRelation constraint
Constrains one or more columns so that the columns have an a relationship to a constant value
- Parameters:
columns – column name or list of column names
relation – operator to check - should be one of <,> , =,>=,<=, ==, !=
value – A literal value to to compare against