leo_s3_libs_data_handler¶
THe s3-libs data handler.
References
Description¶
THe s3-libs data handler
Function Index¶
all/1 | |
delete/2 | Remove a record from the table. |
insert/2 | Insert a record into the table. |
lookup/2 | |
size/1 | Retrieve total of records. |
Function Details¶
delete/2¶
delete(DBInfo, Id) -> ok | {error, any()}
- DBInfo = {mnesia | ets, atom()}
- Id = any()
Remove a record from the table.
insert/2¶
insert(DBInfo, X2::{Id, Value}) -> ok | {error, any()}
- DBInfo = {mnesia | ets, atom()}
- Id = any()
- Value = any()
Insert a record into the table.
lookup/2¶
lookup(DBInfo, Id) -> {ok, any()} | not_found | {error, any()}
- DBInfo = {mnesia | ets, atom()}
- Id = any()