berkes
berkes

Reputation: 27563

Is there a database or persistent storage, packaged in a Ruby gem?

I have a simple Sinatra application that needs some persistence storage. If possible, that database should offer some access by id, and keyword search/find options.

Considering the nature of the to-be stored items, a document-based database seems the best fit.

Obviously I have considered MongoDB and CouchDB, but all have one problem: they introduce dependencies on third party services. I don't want that.

My users should install the Sinatra app as a gem, with its dependencies, run a single command and have everything running.

I am looking for solutions that come as a gem, run under the current user and are really simple. A prepackaged mongoDB would do, too, but I cannot find such a thing. Is SQLlite my only option?

Upvotes: 2

Views: 454

Answers (2)

Kudu
Kudu

Reputation: 6888

You may want to consider either a self-standing database like SQLite and Redis (no-SQL), or an ORM like DataMapper.

Upvotes: 0

Ken Bloom
Ken Bloom

Reputation: 58780

It sounds like you want DBM (which gives you access by id) and Ruby/odeum which gives you keyword search.

Upvotes: 2

Related Questions