See
http://docs.sqlalchemy.org/en/latest/orm/mapper_config.html#constructors-and-object-initialization
On Mon, Jan 7, 2013 at 4:47 AM, RM ryan.mckil...@gmail.com wrote:
I have a class which inherits from Base. My class has a metaclass which
inherits from DeclarativeMeta. Among other things,
Hi all,
I'm experimenting a bit with postgresql arrays of uuid's.
Unfortunately I'm running into a bug or I'm not really understanding
it :-)
My schema definition is as follow:
table = Table('example', metadata,
Column('timestamp', DateTime(timezone=False), primary_key=True),
Hi all,
I'm experimenting a bit with postgresql arrays of uuid's.
Unfortunately I'm running into a bug or I'm not really understanding
it :-)
My schema definition is as follow:
table = Table('example', metadata,
Column('timestamp', DateTime(timezone=False), primary_key=True),
= table.insert().values(
timestamp=datetime.datetime.utcnow(),
guids=[uuid.uuid4(), uuid.uuid4()])
engine.execute(stmt)
the SQL output is the same.
On Jan 2, 2013, at 8:02 AM, Michael van Tellingen wrote:
Hi all,
I'm experimenting a bit with postgresql arrays of uuid's
())
for uuid_val in val
)
On Jan 2, 2013, at 12:55 PM, Michael van Tellingen wrote:
Thanks for the detailed response! Inserting the values seems to work
fine now. Only retrieving them again doesn't work.
I've updated the gist at https://gist.github.com/4433940
The problem seems