snapshot of https://github.com/ActivityWatch/aw-core.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
This commit is contained in:
19
aw_datastore/__init__.py
Normal file
19
aw_datastore/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import Callable, Dict
|
||||
|
||||
from . import storages
|
||||
from .datastore import Datastore
|
||||
from .migration import check_for_migration
|
||||
|
||||
|
||||
def get_storage_methods() -> Dict[str, Callable[..., storages.AbstractStorage]]:
|
||||
from .storages import MemoryStorage, PeeweeStorage, SqliteStorage
|
||||
|
||||
methods: Dict[str, Callable[..., storages.AbstractStorage]] = {
|
||||
PeeweeStorage.sid: PeeweeStorage,
|
||||
MemoryStorage.sid: MemoryStorage,
|
||||
SqliteStorage.sid: SqliteStorage,
|
||||
}
|
||||
return methods
|
||||
|
||||
|
||||
__all__ = ["Datastore", "get_storage_methods", "check_for_migration"]
|
||||
Reference in New Issue
Block a user