diff options
-rw-r--r-- | doc/build/orm/declarative_tables.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/orm/declarative_tables.rst b/doc/build/orm/declarative_tables.rst index b3309b718..47f49c742 100644 --- a/doc/build/orm/declarative_tables.rst +++ b/doc/build/orm/declarative_tables.rst @@ -166,7 +166,7 @@ at :ref:`schema_metadata_schema_name`. The :class:`_schema.MetaData` object may be constructed separately and passed either to :func:`_orm.registry` or :func:`_orm.declarative_base`:: - from sqlalchemy import metadata + from sqlalchemy import MetaData metadata = MetaData(schema="some_schema") Base = declarative_base(metadata = metadata) |