[SQLObject] Additionnal datas on joins
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: G. <fra...@cl...> - 2003-07-28 08:37:54
|
Hi all, in some cases, there's additionnal datas in relation table. For example, th= e rank if the relation is ordered, or a lock object for edition...=20 It's very common to see that. So I'm thinking about how to implement this : - one (ugly but usuable) way to do that without modifying SQLObject is to = describe the join like an entity with 2 foreign keys, and then specifying t= he additionnal columns as usual. - a cleaner way would be to add the columns to the join declaration, and t= hen attach these columns to the entities retrevied when performing the join. so, SQLObject guys, what do you think about that ? Fran=E7ois ps : I'll upload soon my customized version in the CVS, with support for st= ring primary key and ordered join. I'll post when ready ;) |