Skip to content

Conversation

@Iain-S
Copy link
Collaborator

@Iain-S Iain-S commented Feb 24, 2023

Closes #42

  • Converts the num_rows_per_pass: 2 entry in the config .yaml into a num_rows_per_pass = 2 member variable in the generator class when we do make-generators ....
  • Runs the generator that many times when we do create-data ....

@Iain-S Iain-S requested a review from mhauru February 24, 2023 17:33
Copy link
Collaborator

@mhauru mhauru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Iain-S Iain-S merged commit 6b6b10c into main Feb 24, 2023
@Iain-S Iain-S deleted the 42-num-rows-per-pass branch February 24, 2023 17:48
tim-band added a commit to tim-band/sqlsynthgen that referenced this pull request Jun 11, 2025
* test_make updated
test_settings fixed

* Fixed main and create tests

* Tests all pass individually now. Many fixes:
* create-vocab actually runs
* create-data reports correct count of story rows
* -f can be used as well as --force
* the logger is called "datafaker" not "utils"
* row generators can fully exhaust unique constraints
* row/story generator modules can just be files (this may just have been broken for tests)
* turning on max constraint retries doesn't break create-data
* unique constraint failure does not blow up datafaker

* More test robustness

* All test pass together!
Row generators can be instantiated objects

---------

Co-authored-by: Tim Band <t.b@ucl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make num_rows_per_pass work

3 participants