sqlalchemy.engine.reflection.Inspector.get_columns : documentation error for SQLAlchemy 1.2.0b1

Issue #4051 new
Rudolf Cardinal created an issue

In SQLAlchemy 1.2.0b1, it's possible for sqlalchemy.engine.reflection.Inspector.get_columns to return the following dict as one of its results:

{
    'type': VARCHAR(length=255),
    'nullable': False,
    'default': None,
    'name': 'device_id',
    'comment': 'Source tablet device ID'
}

The docs at http://docs.sqlalchemy.org/en/latest/core/reflection.html#sqlalchemy.engine.reflection.Inspector.get_columns seem to be out of date for this in that (a) attrs is documented as part of the returned dictionary, but is absent in this real example; (b) comment is new and undocumented.

Comments (0)

  1. Log in to comment