On Thu, May 20, 2010 at 8:06 PM, Michael Bayer <mike...@zzzcomputing.com> wrote: > > On May 20, 2010, at 4:49 PM, Yang Zhang wrote: > >> I defined a TypeDecorator with impl=postgres.PGUuid so that I can work >> with raw UUID bytes (instead of hex strings), but I'd like to make >> this portable to other DBMSs, where i want the impl to be a BLOB. How >> can I do this? The reference docs are pretty sparse here. Thanks in >> advance. > > i'd recommend a VARCHAR for a uuid as they are usually used as primary keys - > BLOBs make very poor primary keys.
But is there a way to accomplish this such that for PG dialects I'm using a PGUuid instead of a CHAR? -- Yang Zhang http://yz.mit.edu/ -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.