A local and fast Database solution for NodeJS that allows your to balance between in-memory storage and JSON File based storage based on your requirements and system specs.
- Local DB
- Seperate Index
- Does not require DB to be loded into memory
- Balance between File System and Memory storage for the DB (Soon)
- Split DB files to avoid large file size (Soon)
- Query System (Soon)
- Compression/Opimization for Data (Soon)
- In-Memory Optimization (Soon)
CaliDB uses an index file and sets of binary DB files. All the "raw" data is stored in the db files and their byte positions are stored in the index, along with their size. This results in not having to load the entire DB like in simpler JSON implementations.
var CaliDB = require('calidb');
var config ={
path:"./MyDb/"
}
var DB = new CaliDB(config);
DB.Set("123", {a:1,b:2,c:3});
DB.Set("letterswork", {a:1,b:2,c:3});
DB.Set("no_spaces", {a:1,b:2,c:3});
DB.Get("letterswork").then(function(data){
//data = {a:1,b:2,c:3}
})
var Response = DB.GetSync("123") // Returns {a:1,b:2,c:3}
path
- Path to store DB information. Must be unique if running multiple DB instances as this will define which datasource you want to recieve form
Stil Under Construction
Stil Under Construction
See Our Project Panel on Github