Ruby on Rails Saturday, October 2, 2010

I think that your problem is not non-sql database.
Arel is "Relational Algebra for Ruby", so since you use non-relational
DB, it's not a good idea to implement any adapters for Arel.
But, Rails 3 has changed ActiveRecord's model architect (e.g. added
ActiveModel), so you should try to implement some adapter for
ActiveRecord, but not for the Arel.
(Arel is just a query interface for ActiveRecord for relational
databases)

On Oct 2, 8:33 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Oct 2, 4:31 pm, dancinglightning <tors...@lightning.nu> wrote:
>
> > Hi,
>
> > I'm considering to make my database* ActiveRecord compatible. To this
> > end I have some questions, or would appreciate pointers where to ask:
>
> Do you really mean ActiveRecord compatible or do you just want to
> implement the ActiveModel interface ?
>
> Fred
>
>
>
> > - as the db is not sql, I think writing an ActiveRecord/sql adapter
> > isn't really the way to go. But then what is?
> > - I've seen an old Arel had a memory implementation in ruby. As my db
> > is a memory db (in ruby/C) this may be a way, alas the code I see has
> > _little_ comments. Has anyone attempted such a thing (ie a non-sql
> > implementation in arel)
> > - is there a specific activerecord  /arel  mailing list ?
>
> > Thanks for any pointers  (and sorry this is somewhat of-topic for
> > most)
>
> > Torsten
>
> > *warpdb is a memory object(ish) database for rubyhttp://github.com/dancinglightning/warpdb
> > It works for basic things, but has yet to see a real project, so
> > you've been warned.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment