Skip to content

gildo/tonto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NoSQL key-value document store with git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages