summaryrefslogtreecommitdiff
path: root/doc/build/core/reflection.rst
diff options
context:
space:
mode:
authorjonathan vanasco <jonathan@2xlp.com>2020-12-02 14:42:02 -0500
committerjonathan vanasco <jonathan@2xlp.com>2020-12-07 12:37:18 -0500
commit8cb1e372fc8711069220182b75a31647dd51e3cb (patch)
tree301b38dee1b1abd88a7c58e915b7a284db7eb28b /doc/build/core/reflection.rst
parent0d76857ee1022f41baffff4091be765deea4e421 (diff)
downloadsqlalchemy-8cb1e372fc8711069220182b75a31647dd51e3cb.tar.gz
update docs that reference the deprecated `from_engine` inspection
Change-Id: I8db8752722f3ac7c410b39970224204caa9d4b72
Diffstat (limited to 'doc/build/core/reflection.rst')
-rw-r--r--doc/build/core/reflection.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/core/reflection.rst b/doc/build/core/reflection.rst
index c320478a0..b95d3e44a 100644
--- a/doc/build/core/reflection.rst
+++ b/doc/build/core/reflection.rst
@@ -131,9 +131,9 @@ lists of schema, table, column, and constraint descriptions from a given
database is also available. This is known as the "Inspector"::
from sqlalchemy import create_engine
- from sqlalchemy.engine import reflection
+ from sqlalchemy import inspect
engine = create_engine('...')
- insp = reflection.Inspector.from_engine(engine)
+ insp = inspect(engine)
print(insp.get_table_names())
.. autoclass:: sqlalchemy.engine.reflection.Inspector