Skip to content

Latest commit

 

History

History
97 lines (44 loc) · 2.1 KB

kvdb_schema.md

File metadata and controls

97 lines (44 loc) · 2.1 KB

Module kvdb_schema

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).

Function Index

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

Function Details

all_ok/3

all_ok(Schema, F, Obj) -> any()

behaviour_info/1

behaviour_info(X1) -> any()

fold_schema/3

fold_schema(Schema, F, Obj) -> any()

on_update/4

on_update(Op, Db, Table, Obj) -> any()

post_commit/2

post_commit(X1, X2) -> any()

pre_commit/2

pre_commit(C, X2) -> any()

read/1

read(Db) -> any()

read/2

read(Db, Item) -> any()

validate/3

validate(Db, Type, Obj) -> any()

write/2

write(Db, Schema) -> any()