Skip to content

pickeloe5/data-bonk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data-Bonk

A Light-Weight Database Engine With Zero Magic

Table of Contents

Installation

npm install https://github.com/pickeloe5/data-bonk

Usage

const Path = require('path')
const DataBonk = require('data-bonk')

const path = Path.join(__dirname, 'data-file.broken-book.bin')
const defaultValue = {users:[]}

; (async function() {
	const db = await DataBonk.create(path, defaultValue)
	const users = db.root.traverse('users')
	await users.create({name: 'Jon'})
	await users.traverse(0).read()
	await users.traverse(0).update({name: 'Jane'})
	await users.delete(0)
})()

About

A light-weight database engine with zero magic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published