stash/scripts/test_db_generator
WithoutPants 569c3a872a [Files Refactor] Performance tuning (#2809)
* Use cache during migration
* Avoid use of query views
* Use FindMany to find related objects
* Log slow queries
* Add folders to generated files
* Use SlimScene for scene queries
* Include filename in migration error message
2022-09-06 07:03:42 +00:00
..
README.md Test database generator (#1513) 2021-06-23 08:29:10 +10:00
config.yml Filter tag by hierarchy (#1746) 2021-10-01 11:50:06 +10:00
female.txt Test database generator (#1513) 2021-06-23 08:29:10 +10:00
makeTestDB.go [Files Refactor] Performance tuning (#2809) 2022-09-06 07:03:42 +00:00
male.txt Test database generator (#1513) 2021-06-23 08:29:10 +10:00
naming.go [Files Refactor] Performance tuning (#2784) 2022-09-06 07:03:42 +00:00
scene.txt Test database generator (#1513) 2021-06-23 08:29:10 +10:00
studio.txt Test database generator (#1513) 2021-06-23 08:29:10 +10:00
surname.txt Test database generator (#1513) 2021-06-23 08:29:10 +10:00

README.md

This is a quick and dirty go script for generating a contrived database for testing purposes.

Edit the config.yml file to your liking. The numbers indicate the number of objects to generate, the naming section indicates the files from which to generate names.

May cause unexpected behaviour if run against an existing database file.

To run - from the test_db_generator: go run .

The database file will be generated in the current directory.