I'm trying to generate models using sqlacodegen and as an output I get only tables from public schema. How can I retrive models from all tables and schemas?
sqlacodegen --outfile models.py postgres://user:passw@Host:Port/dbname
I'm trying to generate models using sqlacodegen and as an output I get only tables from public schema. How can I retrive models from all tables and schemas?
sqlacodegen --outfile models.py postgres://user:passw@Host:Port/dbname
I know I'm a bit late to the party, but if any else is looking for the answer:
You can append the argument
on to the end of thsqlacodegen command.