Add support for database flavors to `swh db-init`
Closed
requested to merge generated-differential-D3997-source into generated-differential-D3997-target
2 unresolved threads
Compare changes
Files
2+ 80
− 33
@@ -6,7 +6,7 @@
@@ -92,7 +92,10 @@ def db_create(module, db_name, template):
@@ -103,28 +106,41 @@ def db_init(module, db_name):
@@ -147,30 +163,48 @@ def get_sql_for_package(modname):
@@ -181,18 +215,18 @@ def create_database_for_package(
@@ -206,7 +240,7 @@ def create_database_for_package(
@@ -218,27 +252,40 @@ def create_database_for_package(
not a blocker, but would it be possible to have this a click.Choice option?
I wish it was possible, but in general it depends on which database you're trying to initialize, and you'd have to parse their SQL files to know which flavors exist.
The function does: