echodb

command module
v0.0.0-...-e2d1e16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2015 License: BSD-2-Clause, MIT Imports: 4 Imported by: 0

README

EchoDB

Fault-tolerrent "data-on-wire" NoSQL datastore written in 48hrs.

  • Fault-tolerrant NoSQL [done]
  • MMAP based datastore (mostly based on gommap and tiedot wrapper) [done]
  • Hashtable based indexer (based on tiedot implementation) [done]
  • Simple HTTP API to manage collections [done]
  • Data on wire (using websocket) [almost done]
  • Query Engine [Not Implemented]
  • and yes, it's written in 48hrs during GopherGala 2015

Install

mkdir echodb
cd echodb
export GOPATH=`pwd`
go get github.com/gophergala/echodb
cd src/github.com/gophergala/echodb/
go run main.go

You may also run it from binary but you need to copy todoapp in bin folder

There is a sample todo app at http://localhost:8001/client [try it in two browser sessions]

HTTP server runs at http://localhost:8001 please see server.go

Dependencies

go get github.com/justinas/alice
go get github.com/gorilla/mux
go get github.com/gorilla/websocket

Database API

Database.Create(collectionName)
Database.Get(collectionName)
Database.Delete(collectionName)

Collection.FindById(id)
Collection.All()
Collection.Read(id)
Collection.Delete(id)
Collection.Update(id, payload)

Current status

Highly experimental

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Collection data structure for database Database API
Collection data structure for database Database API
Common data file features - enlarge, close, close, etc.
Common data file features - enlarge, close, close, etc.
Standard error implementation Taken from tiedot
Standard error implementation Taken from tiedot
Package gommap allows mapping files into memory.
Package gommap allows mapping files into memory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL