dbldatagen.constraints.sql_expr module

This module defines the SqlExpr class

class SqlExpr(expr: str)[source]

Bases: NoPrepareTransformMixin, Constraint

SQL Expression Constraint object

This class represents a constraint that is modelled using a SQL expression

Parameters:

expr – A SQL expression as a string