I am using sqlacodegen to generate Python class models from an existing PostgreSQL database. However, when I run the command, the generated output file contains only metadata and no tables. I have verified that I am using the correct database URL, and that I have the required privileges to access the tables in the database. Additionally, the database schema is set to public.
I have tried running the command with the --no-inflect option to disable automatic inflection, but that did not solve the issue. I have also confirmed that the database has tables and that the tables are not empty. I am using the latest version of sqlacodegen, and I am running Python 3.9. I have also tried using other code generation tools such as alembic, but they did not solve the issue either. This issue is preventing me from generating the necessary models for my project, and I would appreciate any help in resolving it. Thank you for your attention to this matter. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/b4f3808e-2637-45a6-a491-a42451ed7cb6n%40googlegroups.com.