pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

develop integration of Adjacency List Relationships¶ #9

Closed pythononwheels closed 7 years ago

pythononwheels commented 12 years ago

The adjacency list pattern is a common relational pattern whereby a table contains a foreign key reference to itself. This is the most common way to represent hierarchical data in flat tables.

Must be added to basemodels (see has_many / belongs_to there)

Also see: http://docs.sqlalchemy.org/en/rel_0_7/orm/relationships.html