From: Jamey Cribbs Date: 2005-10-21T22:16:55+09:00 Subject: Re: Madeleine, SQLite and multi-platform issues (in ruby :-) Assaph Mehr wrote: >Ezra Zygmuntowicz wrote: > > >>What about using a pure ruby solution like KirbyBase? >> >> > >Nice idea. I like the plain-text backend (particularly fitting for my >domain), and can live without SQL and a gem release. > >My only question is about integrating with Rails. Any experience with >something like this? >I saw KirbyRecord, which is *like* ActiveRecord for KB, but I need >proper integration. Not necessarily all the trimmings of AR, but it >should work fairly painlessly. Any comments? > > I've thought a little bit about writing an ActiveRecord adapter for KirbyBase since getting back from RubyConf, but, since I haven't had the opportunity to play with Rails yet (I think I might be the last Ruby programmer left who hasn't done this :-) ), I'm not sure what that will entail. From what I have heard, ActiveRecord uses SQL heavily in it's internals. Also, I read somewhere that David mentioned that someone had Rails going to a text file backend, but I think they may have bypassed ActiveRecord altogether. So, to get KirbyBase working with Rails, it looks like there are two choices: 1. Write a SQL parser for KirbyBase (ugh, lots of work, unless it only has to support a subset of SQL). 2. Figure out how to connect the two without using ActiveRecord (is this how Madeleine does it?). To do #2, I don't know how familiar you have to be with the inner workings of Rails. It sounds like an interesting thing to work on, but I am not sure when/if I will get a chance to work on it. Jamey Cribbs Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.