help-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recfile as a backend DB for Ruby on Rails ?


From: Jose E. Marchesi
Subject: Re: Recfile as a backend DB for Ruby on Rails ?
Date: Thu, 02 Dec 2021 21:00:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> On 2021-12-03 01:53, Jose E. Marchesi wrote:
>> Hi there.
>> 
>>> I like the idea of keeping my personal data files Vim-compatible and
>>> make good use of VOom, VimWiki, etc - so I am thinking I could convert
>>> my Watched Netflix videos text file into a recfile which would be more
>>> convenient for sorting and organising the info etc.  However, it would
>>> be very nice if that recfile could be used as the DB back end of a
>>> little RoR web program so siblings etc could look at my watched list.
>>> Has anyone already thought of this? - already done some sort of gem
>>> interface?
>> I have never used ruby, nor Ruby on Rails.
>> I guess you would need a way to parse recfiles from ruby?
>
>
> Well Ruby and Rails usually use the Active Record Query Interface:
>
>   https://guides.rubyonrails.org/active_record_querying.html
>
> I am not sure where AR came from originally but I found this:
>
> "Active Record will perform queries on the database for you and is
> compatible with most database systems, including MySQL, MariaDB, 
> PostgreSQL, and SQLite. Regardless of which database system you're
> using, the Active Record method format will always be the same."
>
> So it seems that a Ruby Gem is needed to allow AR <=> RecFile . .
>
> I would really be starting from scratch trying to work out how to
> create such a gem but I will ask a question on the Rails list to see
> if anyone thinks it is a good idea . .

Nice.  Please let us know how it goes.  I would be nice to see support
for recfiles in that library.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]