[postmodern-devel] patch: DAO constraints

Maciej Pasternacki maciej at pasternacki.net
Tue Oct 14 11:13:20 UTC 2008


On 2008-10-11, at 13:12, Marijn Haverbeke wrote:

>> and DEFTABLE doesn't support inheritance
>
> Just to be clear -- deftable just wraps a list of strings or stuff
> that can be evaluated to strings, so everything that can be expressed
> in SQL can be expressed in deftable.


I understand how DEFTABLE works (I think so), and it doesn't support  
what I actually need.  I want to use DAO inheritance, which is  
supported, but currently to use constraints in DAO tables, I need to  
specify them separately for parent and child class.  DEFTABLE doesn't  
help here, because it allows only to define a specific table, without  
any extension, application of same constraints to "child" tables, and  
so on.  Maybe initialization function taking class or class name as an  
argument would help -- however, it seems to me that constraints belong  
to DAO classes in the same way column types do.

Regards,
Maciek

-- 
-><- Maciej Pasternacki -><- http://www.pasternacki.net/ -><-





More information about the postmodern-devel mailing list