Hello Alvaro thank you for your answer and help
Fernando --- On Fri, 5/8/09, Álvaro Justen [Turicas] <alvarojus...@gmail.com> wrote: > From: Álvaro Justen [Turicas] <alvarojus...@gmail.com> > Subject: [web2py:21499] Re: Mapping databse > To: web2py@googlegroups.com > Date: Friday, May 8, 2009, 2:43 PM > > On Fri, May 8, 2009 at 2:27 PM, Yarko Tymciurak <yark...@gmail.com> > 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---