Module leo_backend_db_ets

Handling database operation for ETS.

References

Description

Handling database operation for ETS

Function Index

close/1Close a ets data store.
delete/2Delete an object from the ets.
first/1Retrieve a first record from the ets.
get/2Retrieve an object from the ets.
open/1Open a new ets datastore.
open/2
prefix_search/4Retrieve objects from ets by a keyword.
put/3Insert an object into ets.
status/1Get the status information for this ets.

Function Details

close/1

close(Table) -> ok

Close a ets data store

delete/2

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

Delete an object from the ets

first/1

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

Retrieve a first record from the ets

get/2

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

Retrieve an object from the ets.

open/1

open(Table) -> ok

Open a new ets datastore

open/2

open(Table, Option) -> ok

prefix_search/4

prefix_search(Table, Key, Fun, MaxKeys) -> {ok, list()} | not_found | {error, any()}

Retrieve objects from ets by a keyword.

put/3

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

Insert an object into ets.

status/1

status(Table) -> [any()] | undefined

Get the status information for this ets.


Generated by EDoc