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

SQLite3 does not generate classes,(python 3.8.1 sqlite 3.2.5) #34

Open
dreamnyj opened this issue Feb 7, 2020 · 2 comments
Open

Comments

@dreamnyj
Copy link

dreamnyj commented Feb 7, 2020

command line:
flask-sqlacodegen --flask sqlite:///data.db --outfile models_gen.py

gen result:

coding: utf-8

from sqlalchemy import Column, Integer, Table, Text
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

t_user_info = db.Table(
'user_info',
db.Column('id', db.Integer),
db.Column('reg_init_date', db.Text),
db.Column('lease_expiration', db.Text),
db.Column('strdogsoftid', db.Text),
db.Column('reg_user_name', db.Text),
db.Column('function_version', db.Integer),
db.Column('type_version', db.Integer)
)

@ksindi
Copy link
Owner

ksindi commented Feb 7, 2020

Thanks @dreamnyj. I don't actively maintain this project. If you would like to submit a PR I'm happy to review it.

@zengaorong
Copy link

@dreamnyj has the problem been solved?

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

3 participants