weaver.database.base

Module Contents

weaver.database.base.AnyStore[source]
class weaver.database.base.DatabaseInterface(_: weaver.typedefs.AnySettingsContainer)[source]

Return the unique identifier of db type matching settings.

static _get_store_type(store_type: StoreSelector | Type[weaver.store.base.StoreInterface] | weaver.store.base.StoreInterface) weaver.store.base.StoreTypeName[source]
get_store(store_type: StoreBillsSelector) weaver.store.base.StoreBills[source]
get_store(store_type: StoreQuotesSelector) weaver.store.base.StoreQuotes
get_store(store_type: StoreJobsSelector) weaver.store.base.StoreJobs
get_store(store_type: StoreProcessesSelector) weaver.store.base.StoreProcesses
get_store(store_type: StoreServicesSelector) weaver.store.base.StoreServices
get_store(store_type: StoreVaultSelector) weaver.store.base.StoreVault
get_store(store_type: StoreBillsSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreBills
get_store(store_type: StoreQuotesSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreQuotes
get_store(store_type: StoreJobsSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreJobs
get_store(store_type: StoreProcessesSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreProcesses
get_store(store_type: StoreServicesSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreServices
get_store(store_type: StoreVaultSelector, *store_args: Any, **store_kwargs: Any) weaver.store.base.StoreVault
abstract reset_store(store_type: StoreSelector) None[source]
abstract get_session()[source]
abstract get_information() weaver.typedefs.JSON[source]

Obtain information about the database.

The implementing class should provide JSON serializable metadata.

abstract is_ready() bool[source]
abstract run_migration() None[source]