Subaru (subaru v0.1.0)

View Source

The main facade and entry point for the Subaru graph database.

Summary

Functions

Commits a batch of write operations to the store.

Generate a sortable identifier.

Adds an :insert operation for a vertex struct to a batch.

Adds a :link operation to a batch.

Runs a query plan and returns the results as a list.

Returns the configured store module.

Functions

backup(path)

Delegates to Subaru.Store.Behaviour.backup/1.

commit(batch)

Commits a batch of write operations to the store.

gen_id()

Generate a sortable identifier.

insert(batch, struct)

Adds an :insert operation for a vertex struct to a batch.

link(batch, type, from_id, to_id, props \\ %{})

Adds a :link operation to a batch.

restore(path)

Delegates to Subaru.Store.Behaviour.restore/1.

run(query)

Runs a query plan and returns the results as a list.

store()

Returns the configured store module.