Page MenuHomeSoftware Heritage

cli: add a new 'db' cli group with an 'init' subcommand
ClosedPublic

Authored by douardda on Jul 9 2019, 4:46 PM.

Details

Summary

that allows to initialize the database for a given swh package with db
connection credentials/dsn read from a standard swh config file.

Closes T1896.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Branch
content-neg
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 6746
Build 9428: tox-on-jenkinsJenkins
Build 9427: arc lint + arc unit

Event Timeline

My understanding is that it adds a new db init cli and does not touch the old one.
The goal is to allow both or in the long run to remove the old one?

swh/core/cli/db.py
28

Database instead of Objstorage

39

Initialize

This revision is now accepted and ready to land.Jul 10 2019, 10:45 AM

add a couple a simple tests

This revision was landed with ongoing or failed builds.Jul 10 2019, 12:02 PM
This revision was automatically updated to reflect the committed changes.