Discussion:
[sqlalchemy] automated table documentation
Chris Frey
2018-11-15 22:21:12 UTC
Permalink
It occurs to me that if it were possible to add documentation as an
argument to Column(), it would be possible to use the sqlalchemy
meta data to generate pretty end-user programmer documentation for
tables.

I see a 'doc' argument already exists in Column.

Are there tools that make use of this? Has this already been done?

Thanks,
- Chris
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
Mike Bayer
2018-11-16 01:23:44 UTC
Permalink
Post by Chris Frey
It occurs to me that if it were possible to add documentation as an
argument to Column(), it would be possible to use the sqlalchemy
meta data to generate pretty end-user programmer documentation for
tables.
I see a 'doc' argument already exists in Column.
Are there tools that make use of this? Has this already been done?
probably not directly from Table, there was some work with docstrings
on declarative classes like
https://docs.sqlalchemy.org/en/latest/changelog/migration_11.html#hybrid-properties-and-methods-now-propagate-the-docstring-as-well-as-info
but i think that's the most sphinx-specific thing we've done.
Post by Chris Frey
Thanks,
- Chris
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
Loading...