curkel-db

1.0.12 • Public • Published

CurkelDB

This is an implementation of the Urkel Tree. This is a specific database api.

Installation

npm install curkel-db

Use

This package can be used as follows:

const Curkel = require('curkel-db')

API Documentation

Create a table

Curkel.create(tableName)
name type description
tableName string name of the table

This creates a table with name, tableName, and returns a confirmation boolean if correct.

Put

Curkel.put(tableName, key, value)
name type description
tableName string name of the table
key byte array key for the value
value bytes array value being placed in the table

This operation does a put, and returns a proof.

Get

Curkel.get(tableName, key)
name type description
tableName string name of the table
key byte array key for the value

Gets a value corresponding to the key, within the tableName.

Del

Curkel.del(tableName, key)
name type description
tableName string name of the table
key byte array key for the value

Deletes the value associated with the key at the designated table.

Readme

Keywords

Package Sidebar

Install

npm i curkel-db

Weekly Downloads

0

Version

1.0.12

License

ISC

Unpacked Size

1.94 MB

Total Files

13

Last publish

Collaborators

  • chasesmith