barrel_design_db (barrel_design v0.1.0)

View Source

One source database: its derived store, its installed designs and one indexer per active view.

docdb has no database lifecycle events, so this process polls until the database is open, then binds to its instance id. The store lives in a directory named after that instance: a database deleted and recreated under the same name, restored or branched gets a new id and therefore an empty store, and the old directory is removed. When the database closes, the indexers stop and the process waits for it to open again; they resume from their durable checkpoints.

Summary

Functions

call(Pid, Msg)

handle_call(Msg, From, S)

handle_cast(Msg, S)

handle_continue(_, S)

handle_info(Info, S)

init(_)

install(Pid, Design, Modules)

list(Pid)

reconcile(Pid)

Apply the database's publication statements now; returns the state of each name and statement.

start_link(Db, Mode)

terminate(Reason, S)

uninstall(Pid, Name)

validate(Pid, Design, Modules)

Check a design and its modules as install would, storing nothing.

view(Pid, Key)