Skip to content

enum_inference

sqllocks_spindle.schema.inference.enum_inference

Upgrade STATUS and CATEGORICAL columns from placeholder enums to realistic weighted values.

For STATUS columns the weight profile depends on the table's role (transaction, entity, or log/audit). For CATEGORICAL columns the profile is inferred from the column name (priority, severity, payment_method, gender, country, etc.).

Classes

EnumInferrer

Upgrade STATUS and CATEGORICAL column generators to realistic weighted enums.

Only modifies columns classified as STATUS or CATEGORICAL whose current generator has placeholder values. Columns with intentionally configured enums are left untouched.