bento_meta.mdb.loaders

mdb.loaders: load models into an MDB instance consistently

Module Contents

Functions

load_mdf(mdf, mdb[, _commit])

Load an MDF object into an MDB instance

load_model(model, mdb[, _commit])

Load a model object into an MDB instance.

load_model_statements(model[, _commit])

Create Cypher statements from a model to load it de novo into an

_cEntity(ent, model, _commit)

_tag_statements(ent, cEnt, _commit)

_prop_statements(ent, cEnt, model, _commit)

_annotate_statements(ent, cEnt, _commit)

bento_meta.mdb.loaders.load_mdf(mdf, mdb, _commit=None)[source]

Load an MDF object into an MDB instance

bento_meta.mdb.loaders.load_model(model, mdb, _commit=None)[source]

Load a model object into an MDB instance.

bento_meta.mdb.loaders.load_model_statements(model, _commit=None)[source]

Create Cypher statements from a model to load it de novo into an MDB instance.

:param mdb.Model model: Model instance for loading :param str _commit: ‘Commit string’ for marking entities in DB. If set, this will override _commit attributes already existing on Model entities.

bento_meta.mdb.loaders._cEntity(ent, model, _commit)[source]
bento_meta.mdb.loaders._tag_statements(ent, cEnt, _commit)[source]
bento_meta.mdb.loaders._prop_statements(ent, cEnt, model, _commit)[source]
bento_meta.mdb.loaders._annotate_statements(ent, cEnt, _commit)[source]