Skip to content

--nocomments not work #39

@wangbs95

Description

@wangbs95

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions