Module leo_backend_db_eleveldb

Handling database operation for eleveldb.

References

Description

Handling database operation for eleveldb

Function Index

close/1Close a leveldb data store and flush any pending writes to disk.
count/1Count the number of records from eleveldb.
delete/2Delete an object from the eleveldb.
first/1Retrieve a first record from eleveldb.
first_n/3Fetch first N records from eleveldb.
get/2Retrieve an object from the eleveldb.
open/1Open a new or existing leveldb datastore for read-only access.
open/2
prefix_search/4Retrieve objects from eleveldb by a keyword.
put/3Insert an object into the eleveldb.
status_compaction/1Retrieve the compaction status.

Function Details

close/1

close(Handler) -> ok

Close a leveldb data store and flush any pending writes to disk

count/1

count(Handler) -> {ok, Count} | {error, any()}

Count the number of records from eleveldb.

delete/2

delete(Handler, Key) -> ok | {error, any()}

Delete an object from the eleveldb.

first/1

first(Handler) -> {ok, any()} | not_found | {error, any()}

Retrieve a first record from eleveldb.

first_n/3

first_n(Handler, N, Condition) -> {ok, [term()]} | not_found | {error, any()}

Fetch first N records from eleveldb.

get/2

get(Handler, Key) -> {ok, binary()} | not_found | {error, any()}

Retrieve an object from the eleveldb.

open/1

open(Path) -> {error, any()} | {ok, pid()}

Open a new or existing leveldb datastore for read-only access

open/2

open(Path, Config) -> {error, any()} | {ok, pid()}

prefix_search/4

prefix_search(Handler, Key, Fun, MaxKeys) -> {ok, [term()]} | not_found | {error, any()}

Retrieve objects from eleveldb by a keyword.

put/3

put(Handler, Key, Value) -> ok | {error, any()}

Insert an object into the eleveldb.

status_compaction/1

status_compaction(Handler) -> binary()

Retrieve the compaction status


Generated by EDoc