Contraption for create splited models generated by sqlacodegen
- Download and install sqlacodegen
- Run cmd
sqlacodegen mysql+oursql://user:password@localhost/dbname --outfile output-sqlacodegen.py
- Check variables
model_folder_name
andunique_model_file
inmain.py
, change if necessary - Run
main.py
📌 Note that it is not a professional solution, just a shortcut to cover the lack of the feature in the sqlacodegen
📌 Recommended that you check the generated models to avoid problems.