stupid key-value document store ( that uses git as DB )
tonto ( which can be translated from Italian to git ) is a simple, high-level and a bit stupid document-oriented store that allows you to use git repos as schema-less NoSQL databases.
The best way to install tonto is with RubyGems:
$ [sudo] gem install tonto
require 'tonto'
db = Tonto::Repo.new("/my/git/repo", "mydb")
db.put {
:id => 26,
:name => "My first post",
:content => "This is COOOL",
:date => "Time.now"
}
db.get(26)["name"]
My First post
db.put :id => 26, :name => "I'm tonto"
true
db.get(26)["name"]
"I'm tonto"
db.remove(26)
true
db.get(26)
false
Change database:
db.open("mynewdb")
true
Note, if the database does not exist will be created automatically.
enjoy :)
-
status: "alpha status"
-
license: AGPLv3
inspired by technoweenie, nimbus and gitmodel