oslo_db.sqlalchemy.compat.utils
Module¶oslo_db.sqlalchemy.compat.utils.
get_postgresql_enums
(conn)¶Return a list of ENUM type names on a Postgresql backend.
For SQLAlchemy 0.9 and lower, makes use of the semi-private _load_enums() method of the Postgresql dialect. In SQLAlchemy 1.0 this feature is supported using get_enums().
This function may only be called when the given connection is against the Postgresql backend. It will fail for other kinds of backends.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.