Skip to content

Latest commit

 

History

History
67 lines (40 loc) · 1.14 KB

README.markdown

File metadata and controls

67 lines (40 loc) · 1.14 KB

tonto

stupid key-value document store ( that uses git as DB )

description

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.

installation

The best way to install tonto is with RubyGems:

$ [sudo] gem install tonto

synopsis

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 :)

misc

  • status: "alpha status"

  • license: AGPLv3

inspired by technoweenie, nimbus and gitmodel