you want to set primary keys on a selectable ? selectables are
supposed to very closely relate to SQL constructs. the mapper level
is where you can define your not-quite-SQL constructs and how they
map to your SQL constructs. since a SELECT statement in SQL doesnt
have a primary key, im not sure its appropriate ?
On Feb 2, 2006, at 5:00 PM, [EMAIL PROTECTED] wrote:
hi,
i'm trying to use an aliased selectable
with a mapper, and the i'm getting an
error that the selectable does not have
a primary key.
the error also says that i can specify
the primary key to the mapper init, but
i'd rather tell the selectable what its
primary key is instead.
i see that there are read-only ways
of accessing a table's primary key,
but haven't found a way to specify
what the key should be.
is there a way that i'm missing?
thanks,
d
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users