dbos 0.22.0a8__py3-none-any.whl → 0.22.0a9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dbos might be problematic. Click here for more details.
- dbos/_db_wizard.py +8 -4
- {dbos-0.22.0a8.dist-info → dbos-0.22.0a9.dist-info}/METADATA +1 -1
- {dbos-0.22.0a8.dist-info → dbos-0.22.0a9.dist-info}/RECORD +6 -6
- {dbos-0.22.0a8.dist-info → dbos-0.22.0a9.dist-info}/WHEEL +0 -0
- {dbos-0.22.0a8.dist-info → dbos-0.22.0a9.dist-info}/entry_points.txt +0 -0
- {dbos-0.22.0a8.dist-info → dbos-0.22.0a9.dist-info}/licenses/LICENSE +0 -0
dbos/_db_wizard.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
import time
|
|
4
|
-
from typing import TYPE_CHECKING, Optional, TypedDict
|
|
4
|
+
from typing import TYPE_CHECKING, Optional, TypedDict, cast
|
|
5
5
|
|
|
6
6
|
import docker # type: ignore
|
|
7
7
|
import typer
|
|
@@ -50,10 +50,14 @@ def db_wizard(config: "ConfigFile", config_file_path: str) -> "ConfigFile":
|
|
|
50
50
|
with open(config_file_path, "r") as file:
|
|
51
51
|
content = file.read()
|
|
52
52
|
local_config = yaml.safe_load(content)
|
|
53
|
+
if "database" not in local_config:
|
|
54
|
+
local_config["database"] = {}
|
|
55
|
+
local_config = cast("ConfigFile", local_config)
|
|
56
|
+
|
|
53
57
|
if (
|
|
54
|
-
local_config["database"]
|
|
55
|
-
or local_config["database"]
|
|
56
|
-
or local_config["database"]
|
|
58
|
+
local_config["database"].get("hostname")
|
|
59
|
+
or local_config["database"].get("port")
|
|
60
|
+
or local_config["database"].get("username")
|
|
57
61
|
or db_config["hostname"] != "localhost"
|
|
58
62
|
or db_config["port"] != 5432
|
|
59
63
|
or db_config["username"] != "postgres"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-0.22.
|
|
2
|
-
dbos-0.22.
|
|
3
|
-
dbos-0.22.
|
|
4
|
-
dbos-0.22.
|
|
1
|
+
dbos-0.22.0a9.dist-info/METADATA,sha256=F2gVeTkPRbVFI8zT2Cx_cF0YMbOtOT3rhLJHLpx-lZI,5309
|
|
2
|
+
dbos-0.22.0a9.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.22.0a9.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.22.0a9.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=CxRHBHEthPL4PZoLbZhp3rdm44-KkRTT2-7DkK9d4QQ,724
|
|
6
6
|
dbos/_admin_server.py,sha256=YiVn5lywz2Vg8_juyNHOYl0HVEy48--7b4phwK7r92o,5732
|
|
7
7
|
dbos/_app_db.py,sha256=_tv2vmPjjiaikwgxH3mqxgJ4nUUcG2-0uMXKWCqVu1c,5509
|
|
@@ -12,7 +12,7 @@ dbos/_cloudutils/databases.py,sha256=x4187Djsyoa-QaG3Kog8JT2_GERsnqa93LIVanmVUmg
|
|
|
12
12
|
dbos/_context.py,sha256=gikN5lUVqnvR-ISoOElXYeYsR_BO2whebB3YP2DJBM4,17713
|
|
13
13
|
dbos/_core.py,sha256=y6FV2l7EDBXya2EJFJMCWM4Acc-4T8J1xAY91O9pImY,35462
|
|
14
14
|
dbos/_croniter.py,sha256=hbhgfsHBqclUS8VeLnJ9PSE9Z54z6mi4nnrr1aUXn0k,47561
|
|
15
|
-
dbos/_db_wizard.py,sha256=
|
|
15
|
+
dbos/_db_wizard.py,sha256=6tfJaCRa1NtkUdNW75a2yvi_mEgnPJ9C1HP2zPG1hCU,8067
|
|
16
16
|
dbos/_dbos.py,sha256=FE1OPzLM55F3Y6EUg4tyuSOtuggOGzrJNrGOZ3mqCpU,38118
|
|
17
17
|
dbos/_dbos_config.py,sha256=DfiqVVxNqnafkocSzLqBp1Ig5vCviDTDK_GO3zTtQqI,8298
|
|
18
18
|
dbos/_error.py,sha256=vtaSsG0QW6cRlwfZ4zzZWy_IHCZlomwSlrDyGWuyn8c,4337
|
|
@@ -60,4 +60,4 @@ dbos/cli/cli.py,sha256=_tXw2IQrWW7fV_h51f_R99vEBSi6aMLz-vCOxKaENiQ,14155
|
|
|
60
60
|
dbos/dbos-config.schema.json,sha256=X5TpXNcARGceX0zQs0fVgtZW_Xj9uBbY5afPt9Rz9yk,5741
|
|
61
61
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
62
62
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
63
|
-
dbos-0.22.
|
|
63
|
+
dbos-0.22.0a9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|