summaryrefslogtreecommitdiff
path: root/examples/adjacency_list
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
commitc6bceb77754bd72c462ce146f706758d1ad3da4a (patch)
tree0b9c935221c572bd75f3c88fe849fb17595e0a79 /examples/adjacency_list
parent1675811029553501bb23084604c64d974dfe739c (diff)
downloadsqlalchemy-c6bceb77754bd72c462ce146f706758d1ad3da4a.tar.gz
- converted all lazy=True|False|None to 'select'|'joined'|'noload'
- converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
Diffstat (limited to 'examples/adjacency_list')
-rw-r--r--examples/adjacency_list/adjacency_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/adjacency_list/adjacency_list.py b/examples/adjacency_list/adjacency_list.py
index 494ae1c27..624239869 100644
--- a/examples/adjacency_list/adjacency_list.py
+++ b/examples/adjacency_list/adjacency_list.py
@@ -2,7 +2,7 @@ from sqlalchemy import MetaData, Table, Column, Sequence, ForeignKey,\
Integer, String, create_engine
from sqlalchemy.orm import sessionmaker, mapper, relationship, backref,\
- eagerload_all
+ joinedload_all
from sqlalchemy.orm.collections import attribute_mapped_collection
@@ -119,7 +119,7 @@ if __name__ == '__main__':
"selecting tree on root, using eager loading to join four levels deep.")
session.expunge_all()
node = session.query(TreeNode).\
- options(eagerload_all("children", "children",
+ options(joinedload_all("children", "children",
"children", "children")).\
filter(TreeNode.name=="rootnode").\
first()