Reputation: 27563
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
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
Reputation: 58780
It sounds like you want DBM (which gives you access by id) and Ruby/odeum which gives you keyword search.
Upvotes: 2