diff options
Diffstat (limited to 'examples/polymorph/polymorph.py')
-rw-r--r-- | examples/polymorph/polymorph.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/polymorph/polymorph.py b/examples/polymorph/polymorph.py index 231a9d8e4..4f3aeb7d2 100644 --- a/examples/polymorph/polymorph.py +++ b/examples/polymorph/polymorph.py @@ -1,10 +1,11 @@ from sqlalchemy import * +from sqlalchemy.orm import * import sets -# this example illustrates a polymorphic load of two classes, where each class has a very -# different set of properties +# this example illustrates a polymorphic load of two classes -metadata = MetaData('sqlite://', echo=True) +metadata = MetaData('sqlite://') +metadata.bind.echo = True # a table to store companies companies = Table('companies', metadata, |