diff options
author | Mike Knudson <mtgeekman@gmail.com> | 2022-02-23 13:51:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 21:51:50 +0100 |
commit | 878c37614efd311794aa50467dbb9e3fe972fdff (patch) | |
tree | 62eaee3cac41faabd0a609d97b1857039eb34e2c | |
parent | d8f869aa7994db991c53d3cb008cbef34a1bfe49 (diff) | |
download | sqlalchemy-878c37614efd311794aa50467dbb9e3fe972fdff.tar.gz |
Add missing query before trying to print (#7665)
The documentation had a print before a query was run.
-rw-r--r-- | lib/sqlalchemy/ext/automap.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/automap.py b/lib/sqlalchemy/ext/automap.py index eb746dcee..e0f532152 100644 --- a/lib/sqlalchemy/ext/automap.py +++ b/lib/sqlalchemy/ext/automap.py @@ -56,6 +56,7 @@ asking it to reflect the schema and produce mappings:: # collection-based relationships are by default named # "<classname>_collection" + u1 = session.query(User).first() print (u1.address_collection) Above, calling :meth:`.AutomapBase.prepare` while passing along the |