On Mon, May 11, 2009 at 12:33 PM, mdipierro <
mdip...@cs.depaul.edu> wrote:
>
> More than this I would prefer to have
>
> db.define_table('mytable',
>> SQLField(...),
>> ...
>> actual_filename='myapp_mytable',
>> field_prefix=None',
>> )
>
> The problems are:
> - This requires many small changes to sql.py and, if done, needs to
> lots of testing.
> - This requires introducing one more lookup table to map real name
> into virtual names and it will slow down the building of sql
> expressions
> - So far we tried to be as close as possible to the actual DB. This
> would be a (minor) change of phylosophy.
> - If done, this has to be done for gql as well.
>
> I think this should be done by only as part of a major more modular
> refactoring of sql.py. If we hack this in sql.py will become too
> complex to manage.
I think it is not so complex. What if we modify SQL to "SELECT ...
FROM tabel AS my_new_name"? The problem is that I don't know GQL... is
there a "AS" like in SQL?