fschulze / sqlalchemy_schemadisplay

Other
143 stars 37 forks source link

Show table docstrings in schema display #11

Open Tadaboody opened 6 years ago

Tadaboody commented 6 years ago

I would love it if a table declared as

class MyTable(BaseModel):
    """doc string explaining the table """
    field = Column(Integer)

would show the docstring in the diagram right under the name and before the fields

Tadaboody commented 6 years ago

If this isn't possible due to some tables not being declared this way / the class doctoring isn't saved in the database metadata perhaps there is an existing sqlalchemy variable we could use instead?