On 12/28/06, jose [EMAIL PROTECTED] wrote:
I would like to know how assign label names as in:
comune.cod_provincia AS sigla_provincia
instead of:
comune.cod_provincia AS comune_cod_provincia
http://www.sqlalchemy.org/docs/sqlconstruction.myt#sql_select_labels
--
Lee McFadden
blog:
Lee McFadden wrote:
On 12/28/06, jose [EMAIL PROTECTED] wrote:
I would like to know how assign label names as in:
comune.cod_provincia AS sigla_provincia
instead of:
comune.cod_provincia AS comune_cod_provincia
http://www.sqlalchemy.org/docs/sqlconstruction.myt#sql_select_labels
I
On 12/28/06, jose [EMAIL PROTECTED] wrote:
I Lee,
I see this examples works only with table object.
Is there a way to use it with class mappers?
If you're using the class mappers I'm not quite sure why you'd need to
fiddle with the labels - you shouldn't even need to see the generated
SQL
Lee McFadden wrote:
On 12/28/06, jose [EMAIL PROTECTED] wrote:
I Lee,
I see this examples works only with table object.
Is there a way to use it with class mappers?
If you're using the class mappers I'm not quite sure why you'd need to
fiddle with the labels - you shouldn't even need to
On 12/28/06, jose [EMAIL PROTECTED] wrote:
I think I'm yet a little bit confused about using table objects or class
mappers...
I think I'm doing a fruit salade with both of them:
Here I'm using classes (Anagrafica and Azienda) and also table objects
(tbl['table_name']) because I need