Hey,
how may i extend the declerative base to provide default things that are
always available to any class/table that is derived from it (like primary
keys, create timestamp columns ect) ?
i tried something like this:
import datetime
from sqlalchemy.ext.declarative import declarative_base
Hi Luke,
On 15/08/2013 15:37, Luke wrote:
Hey,
how may i extend the declerative base to provide default things that
are always available to any class/table that is derived from it (like
primary keys, create timestamp columns ect) ?
You might want to look at this.
Hey Werner,
thanks for the hint.
i got the correct answer via IRC now. I'm using
http://docs.sqlalchemy.org/en/rel_0_8/orm/extensions/declarative.html#mixin-and-custom-base-classes
to achieve my goal.
Luke
--
You received this message because you are subscribed to the Google Groups