dbldatagen.constraints package
Submodules
- dbldatagen.constraints.chained_relation module
- dbldatagen.constraints.constraint module
- dbldatagen.constraints.literal_range_constraint module
- dbldatagen.constraints.literal_relation_constraint module
- dbldatagen.constraints.negative_values module
- dbldatagen.constraints.positive_values module
- dbldatagen.constraints.ranged_values_constraint module
- dbldatagen.constraints.sql_expr module
- dbldatagen.constraints.unique_combinations module
Module contents
This package defines the constraints classes for the dbldatagen library.
The constraints classes are used to define predefined constraints that may be used to constrain the generated data.
Constraining the generated data is implemented in several ways:
Rejection of rows that do not meet the criteria
Modifying the generated data to meet the constraint (including modifying the data generation parameters)
Some constraints may be implemented using a combination of the above approaches.
For implementations using the rejection approach, the data generation process will possibly generate less than the requested number of rows.
For the current implementation, most of the constraint strategies will be implemented using rejection based criteria.