mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-29 12:06:28 -04:00
546015e6e1
to allow ad-hoc display of the source of any file, as well as a "directory listing" structure. - reorganize examples/ to take advantage of new extension. in particular, keep moving all the descriptive text for files etc. into module docstrings, taking more advantage of self-documentation.
19 lines
273 B
Python
19 lines
273 B
Python
"""
|
|
An example of a dictionary-of-dictionaries structure mapped using
|
|
an adjacency list model.
|
|
|
|
E.g.::
|
|
|
|
node = TreeNode('rootnode')
|
|
node.append('node1')
|
|
node.append('node3')
|
|
session.add(node)
|
|
session.commit()
|
|
|
|
dump_tree(node)
|
|
|
|
.. autosource::
|
|
|
|
"""
|
|
|