Liking cljdoc? Tell your friends :D

cljs-web3.db

Functions on LevelDB.

A fast key-value storage library that provides an ordered mapping from string keys to string values.

Functions on LevelDB.

A fast key-value storage library that provides an ordered mapping from string
keys to string values.
raw docstring

get-dbcljs

(get-db web3)

Gets leveldb object from web3-instance.

Parameter: web3 - web3 instance

Gets leveldb object from web3-instance.

Parameter:
web3 - web3 instance
sourceraw docstring

get-hexcljs

(get-hex web3 & [db key :as args])

This method should be called, when we want to get a binary data in HEX form from the local leveldb database.

Parameters: db - The database (string) to store to. key - The name (string) of the store.

Returns the stored HEX value.

This method should be called, when we want to get a binary data in HEX form
from the local leveldb database.

Parameters:
db  - The database (string) to store to.
key - The name (string) of the store.

Returns the stored HEX value.
sourceraw docstring

get-stringcljs

(get-string web3 & [db key :as args])

This method should be called, when we want to get string from the local leveldb database.

Parameters: db - The database (string) name to retrieve from. key - The name (string) of the store.

Returns the stored value string.

This method should be called, when we want to get string from the local
leveldb database.

Parameters:
db  - The database (string) name to retrieve from.
key - The name (string) of the store.

Returns the stored value string.
sourceraw docstring

put-hex!cljs

(put-hex! web3 & [db key value :as args])

This method should be called, when we want to store binary data in HEX form in the local leveldb database.

Parameters: db - The database (string) to store to. key - The name (string) of the store. value - The HEX string to store.

Returns true if successful, otherwise false.

This method should be called, when we want to store binary data in HEX form
in the local leveldb database.

Parameters:
db    - The database (string) to store to.
key   - The name (string) of the store.
value - The HEX string to store.

Returns true if successful, otherwise false.
sourceraw docstring

put-string!cljs

(put-string! web3 & [db key value cb :as args])

This method should be called, when we want to store a string in the local leveldb database.

Parameters: web3 - web3 instance args: db - The database (string) to store to. key - The name (string) of the store. value - The string value to store.

Returns true if successful, otherwise false.

This method should be called, when we want to store a string in the local
leveldb database.

Parameters:
web3 - web3 instance
args:
  db    - The database (string) to store to.
  key   - The name (string) of the store.
  value - The string value to store.

Returns true if successful, otherwise false.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close