cowbird.database.base

Module Contents

Classes

DatabaseInterface

Return the unique identifier of db type matching settings.

class cowbird.database.base.DatabaseInterface(_)[source]

Return the unique identifier of db type matching settings.

Database interface defining a minimum set of function mostly around store management.

__slots__ = ['type'][source]
static _get_store_type(store_type: cowbird.typedefs.StoreSelector)str[source]
abstract get_store(self, store_type, *store_args, **store_kwargs)[source]
abstract reset_store(self: cowbird.typedefs.StoreSelector, store_type)None[source]
abstract get_session(self)[source]
abstract get_information(self: Ellipsis)cowbird.typedefs.JSON[source]
Returns

{‘version’: version, ‘type’: db_type}

abstract is_ready(self: Ellipsis)bool[source]