On Fri, May 8, 2009 at 2:27 PM, Yarko Tymciurak <[email protected]> wrote:
> Ok, great.
> Besides having done the backend work for this already,  one thing I
> particularly like about the way Sqlalchemy set this up is being able to say
> something which would look like (in web2py):
> db.define_table('some_existing_table', autoload=true) ....
> This concept I like - autoload == reflect the table, and implies
> migrate=False.
> As long as we go in this direction, if we add to this recognition of _any_
> primary key which is an index, we should be able to map this internally in
> web2py --- this combination would be really useful I think.

The first implementation I unified that functions, but my goal is to
have a "load_table(self, tablename)" and "discover_tables(self,
string=False)". discover_tables will get all tables and call
load_table for each one (if string=True, it returns a string with
db.define_table() syntax for that table, instead of executing that
define_table code -- string=False|True is just working right now).

> Thank you Alvaro!

Thank you too!

-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to