weaver.database.base

Module Contents

weaver.database.base.StoreSelector[source]
class weaver.database.base.DatabaseInterface(_)[source]

Return the unique identifier of db type matching settings.

static _get_store_type(store_type: StoreSelector)str[source]
abstract get_store(self, store_type, *store_args, **store_kwargs)[source]
abstract reset_store(self: StoreSelector, store_type)None[source]
abstract get_session(self)[source]
abstract get_information(self: Ellipsis)weaver.typedefs.JSON[source]

Obtain information about the database.

The implementing class should provide JSON serializable metadata.

abstract is_ready(self: Ellipsis)bool[source]
abstract run_migration(self: Ellipsis)None[source]