-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Bayer ha scritto: > > On Feb 18, 2010, at 10:18 AM, Michael Bayer wrote: > >>> >>> Ok. >>> My idea was to implement the equivalent of SQL '*' column. >>> I can't use the literal '*' in the select column list, since it will >>> disable (?) SQLAlchemy type system. >>> And I don't want to manually add the columns, since I will end up with >>> duplicate columns. >> >> that's a better idea. how about sqlalchemy.EXPAND_STAR ? > > although, still not a compiler level thing. you still want to be able > to say "select.c.<colname>". So it would occur at the point of objects > being added to the FROM list. >
Right. A direct support for the special '*' column is better, and in SQL you can still specify additional columns in addition to '*'. As for the name to use, EXPAND_STAR is ok. The only alternative I can think about is something like sqlalchemy.schema.COLUMN_ALL. Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkt9anIACgkQscQJ24LbaUTn0gCff3M4sFUoRz2xV//qYeKjTlLw fJkAn1AK19mS5B4/4ZLk8mjDSRTyDRc4 =wu+0 -----END PGP SIGNATURE----- -- 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.