1.0.12 • Published 6 years ago

curkel-db v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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)
nametypedescription
tableNamestringname of the table

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

Put

Curkel.put(tableName, key, value)
nametypedescription
tableNamestringname of the table
keybyte arraykey for the value
valuebytes arrayvalue being placed in the table

This operation does a put, and returns a proof.

Get

Curkel.get(tableName, key)
nametypedescription
tableNamestringname of the table
keybyte arraykey for the value

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

Del

Curkel.del(tableName, key)
nametypedescription
tableNamestringname of the table
keybyte arraykey for the value

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

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago