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 6753
Build 9439: tox-on-jenkinsJenkins
Build 9438: arc lint + arc unit

Event Timeline

douardda created this revision.Jul 9 2019, 4:46 PM

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
29

Database instead of Objstorage

39

Initialize

ardumont accepted this revision.Jul 10 2019, 10:45 AM
This revision is now accepted and ready to land.Jul 10 2019, 10:45 AM
douardda updated this revision to Diff 5733.Jul 10 2019, 12:01 PM

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.