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

--nocomments not work #39

Open
wangbs95 opened this issue Jan 19, 2021 · 0 comments
Open

--nocomments not work #39

wangbs95 opened this issue Jan 19, 2021 · 0 comments

Comments

@wangbs95
Copy link

wangbs95 commented Jan 19, 2021

my command:

flask-sqlacodegen --nocomments  --tables resource --flask 'mysql://root:[email protected]/stock?charset=utf8'

result:

# coding: utf-8
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()



class Resource(db.Model):
    __tablename__ = 'resource'

    id = db.Column(db.Integer, primary_key=True, info='主键')
    file_name = db.Column(db.String(255, 'utf8_bin'), nullable=False, info='文件名(带格式后缀)')
    file = db.Column(db.LargeBinary, info='文件')

it's still have info='xxx'.

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

1 participant