KVDB schema callback module behavior.
This module defines the kvdb_schema
behaviour.
Required callback functions: validate/3
, on_update/4
, pre_commit/2
, post_commit/2
.
Authors: Ulf Wiger (ulf@feuerlabs.com
).
all_ok/3 | |
behaviour_info/1 | |
fold_schema/3 | |
on_update/4 | |
post_commit/2 | |
pre_commit/2 | |
read/1 | |
read/2 | |
validate/3 | |
write/2 |
all_ok(Schema, F, Obj) -> any()
behaviour_info(X1) -> any()
fold_schema(Schema, F, Obj) -> any()
on_update(Op, Db, Table, Obj) -> any()
post_commit(X1, X2) -> any()
pre_commit(C, X2) -> any()
read(Db) -> any()
read(Db, Item) -> any()
validate(Db, Type, Obj) -> any()
write(Db, Schema) -> any()