table_generator
sqllocks_spindle.engine.table_generator
¶
Per-table row generation.
Classes¶
TableGenerator
¶
Generate all rows for a single table.
Methods:¶
generate(table, row_count, rng, model_config, schema, sequence_offset=0, register=True)
¶
Generate a DataFrame for a single table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sequence_offset
|
int
|
Offset applied to sequence strategies so each chunk produces contiguous, non-overlapping PKs. |
0
|
register
|
bool
|
When True (default), register this table's PKs in the id_manager (replaces any prior pool). When False, callers MUST use IDManager.append_pks() to grow the pool incrementally. Set False for chunk 2+ in a chunked run so chunk N's child FKs can still see chunk 1..N-1's parent PKs. (3.0.0 audit fix.) |
True
|