cowbird.database.base

Module Contents

Classes

DatabaseInterface

Return the unique identifier of db type matching settings.

class cowbird.database.base.DatabaseInterface(_: cowbird.typedefs.AnySettingsContainer)[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(store_type, *store_args, **store_kwargs)[source]
abstract reset_store(store_type: cowbird.typedefs.StoreSelector)None[source]
abstract get_session()[source]
abstract get_information()cowbird.typedefs.JSON[source]
Returns

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

abstract is_ready()bool[source]