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.
(get-db web3)
Gets leveldb object from web3-instance.
Parameter: web3 - web3 instance
Gets leveldb object from web3-instance. Parameter: web3 - web3 instance
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close