flask-sqlacodegen icon indicating copy to clipboard operation
flask-sqlacodegen copied to clipboard

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

Open dreamnyj opened this issue 5 years ago • 2 comments

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) )

dreamnyj avatar Feb 07 '20 06:02 dreamnyj

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

ksindi avatar Feb 07 '20 16:02 ksindi

@dreamnyj has the problem been solved?

zengaorong avatar Jun 26 '21 03:06 zengaorong