Subaru.Store (subaru v0.1.0)

View Source

Thin facade that dispatches storage operations to the configured adapter.

This module isolates the rest of the code base from the concrete storage implementation. By default the Subaru.Store.Mnesia adapter is used, but this can be changed via the :subaru application environment:

config :subaru, :store, Subaru.Store.Mnesia

Summary

Functions

backup(path)

clear(nodes \\ [node()])

export()

get_edges(src_id, type)

get_vertex(id)

init(options \\ [])

iterate(prefix, opts \\ [])

put_edge(src_id, type, dst_id, props)

put_vertex(id, props)

restore(path)

snapshot(fun)

stop()

transaction(fun)

write_batch(actions)