-
- Downloads
cli/db: normalize handling of given package/backend/config path argument
Make all db cli commands process given arguments as similar as possible to each other. Generalize fallback to using the backend class (declared in the 'swh.<package>.classes' entrypoint) to implement the 'get_datastore()' if this later is not found in the entry point module. Also add a message in 'swh db version' if it detects the dbmodule entry needs to be updated in the database.
Showing
- swh/core/cli/db.py 101 additions, 61 deletionsswh/core/cli/db.py
- swh/core/db/tests/conftest.py 3 additions, 0 deletionsswh/core/db/tests/conftest.py
- swh/core/db/tests/test_cli.py 8 additions, 8 deletionsswh/core/db/tests/test_cli.py
- swh/core/db/tests/test_db_utils.py 3 additions, 3 deletionsswh/core/db/tests/test_db_utils.py
Loading
Please register or sign in to comment