Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't generate Classe for postgresql #37

Open
mmgarcia opened this issue Oct 13, 2020 · 1 comment
Open

Don't generate Classe for postgresql #37

mmgarcia opened this issue Oct 13, 2020 · 1 comment

Comments

@mmgarcia
Copy link

python -m sqlacodegen.main --flask --outfile models.py postgresql://dbusr:[email protected]:9233/dbtest --tables journal user

@brunowego
Copy link

Try:

pip2 install -U psycopg2-binary flask-sqlacodegen

flask-sqlacodegen \
  'postgresql+psycopg2://[username]:[password]@127.0.0.1/[database]' \
  --schema 'public' \
  --outfile './common/models/model.py'  \
  --flask

flask-sqlacodegen \
  'postgresql+psycopg2://[username]:[password]@127.0.0.1/[database]' \
  --schema 'public' \
  --tables 'user' \
  --outfile './common/models/user.py'  \
  --flask

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

No branches or pull requests

2 participants