]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Include missing import in example
authorMichael Stewart <michael@stewart.io>
Fri, 30 Jun 2017 21:02:20 +0000 (14:02 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Jul 2017 15:18:42 +0000 (11:18 -0400)
(cherry picked from commit 1db3029abc371c0808fb622ae2bd716ada81281a)

lib/sqlalchemy/ext/automap.py

index f92211b7a8ed9626529cf0c8704bbd86713f7906..bfbe0aebb8e09350883716f2109a1c35d1e4abcc 100644 (file)
@@ -86,6 +86,7 @@ a serialized file, or from itself being reflected using
 explicit table declaration::
 
     from sqlalchemy import create_engine, MetaData, Table, Column, ForeignKey
+    from sqlalchemy.ext.automap import automap_base
     engine = create_engine("sqlite:///mydatabase.db")
 
     # produce our own MetaData object