hello all, I need any framework that generate models using the database structure.... Anyone knows if have this framework???? Thank''s -- Posted via http://www.ruby-forum.com/.
Bruno - ActiveRecord in Rails does just this: it allows you to build a model which has all of the attributes of the database table. On 3/13/06, Bruno Alberto <bleerloko@hotmail.com> wrote:> hello all, > > I need any framework that generate models using the database > structure.... > Anyone knows if have this framework???? > > > Thank''s > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Michael Gorsuch wrote:> Bruno - ActiveRecord in Rails does just this: it allows you to build > a model which has all of the attributes of the database table.I want a framework that create assosiations of ActiveRecord with only the struct of database... -- Posted via http://www.ruby-forum.com/.
On 3/14/06, Bruno Alberto <bleerloko@hotmail.com> wrote:> I want a framework that create assosiations of ActiveRecord with only > the struct of database...What do you mean by "only the struct of database". Can you provide an example or common use case for this framework? It seems like what you want is good old ActiveRecord. Cheers, Thiago Arrais
I think what Bruno wants is a method to automatically build to associations based on relationships in the database. As far as I know, this isn''t possible. On 3/14/06, Thiago Arrais <thiago.arrais@gmail.com> wrote:> On 3/14/06, Bruno Alberto <bleerloko@hotmail.com> wrote: > > I want a framework that create assosiations of ActiveRecord with only > > the struct of database... > > What do you mean by "only the struct of database". Can you provide an > example or common use case for this framework? > > It seems like what you want is good old ActiveRecord. > > Cheers, > > Thiago Arrais > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Michael Gorsuch wrote:> I think what Bruno wants is a method to automatically build to > associations based on relationships in the database. > > As far as I know, this isn''t possible.Yes Michael i need this.......I have any ideas to create this but before i needed knows if this frameworks exist... -- Posted via http://www.ruby-forum.com/.
Bruno, On 3/14/06, Bruno Alberto <bleerloko@hotmail.com> wrote:> Michael Gorsuch wrote: > > I think what Bruno wants is a method to automatically build to > > associations based on relationships in the database. > > Yes Michael i need this.......I have any ideas to create this but before > i needed knows if this frameworks exist...Hmm... I think I now get what you want to do. I actually have worked on a project to do almost that, generating code to map relational database/table relationships to object oriented/class relationships. I am sorry to say that at least this part of the project didn''t turn out very well. Anyway, I am interested in watching your efforts (and even contributing, shall my free time increase). Do you ultimately plan to build this framework on an open-source fashion (in case you don''t find what you want)? Please let me know of any progress. Thanks, Thiago Arrais