pgbelt 0.7.3__tar.gz → 0.7.4__tar.gz
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.
- {pgbelt-0.7.3 → pgbelt-0.7.4}/PKG-INFO +1 -1
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/config/models.py +13 -3
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pyproject.toml +1 -1
- {pgbelt-0.7.3 → pgbelt-0.7.4}/LICENSE +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/README.md +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/__init__.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/__init__.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/convenience.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/helpers.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/login.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/preflight.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/schema.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/setup.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/status.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/sync.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/cmd/teardown.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/config/__init__.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/config/config.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/config/remote.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/main.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/__init__.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/asyncfuncs.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/dump.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/logs.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/pglogical.py +0 -0
- {pgbelt-0.7.3 → pgbelt-0.7.4}/pgbelt/util/postgres.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pgbelt
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: A CLI tool used to manage Postgres data migrations from beginning to end, for a single database or a fleet, leveraging pglogical replication.
|
|
5
5
|
Author: Varjitt Jeeva
|
|
6
6
|
Author-email: varjitt.jeeva@autodesk.com
|
|
@@ -10,6 +10,7 @@ from pgbelt.util.asyncfuncs import makedirs
|
|
|
10
10
|
from pydantic import BaseModel
|
|
11
11
|
from pydantic import ValidationError
|
|
12
12
|
from pydantic import field_validator
|
|
13
|
+
from urllib.parse import quote
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
def config_dir(db: str, dc: str) -> str:
|
|
@@ -86,15 +87,24 @@ class DbConfig(BaseModel):
|
|
|
86
87
|
|
|
87
88
|
@property
|
|
88
89
|
def root_uri(self) -> str:
|
|
89
|
-
|
|
90
|
+
password = quote(
|
|
91
|
+
self.root_user.pw
|
|
92
|
+
) # https://github.com/encode/databases/issues/145#issuecomment-1303792343 need this to handle special characters
|
|
93
|
+
return f"postgresql://{self.root_user.name}:{password}@{self.ip}:{self.port}/{self.db}"
|
|
90
94
|
|
|
91
95
|
@property
|
|
92
96
|
def owner_uri(self) -> str:
|
|
93
|
-
|
|
97
|
+
password = quote(
|
|
98
|
+
self.owner_user.pw
|
|
99
|
+
) # https://github.com/encode/databases/issues/145#issuecomment-1303792343 need this to handle special characters
|
|
100
|
+
return f"postgresql://{self.owner_user.name}:{password}@{self.ip}:{self.port}/{self.db}"
|
|
94
101
|
|
|
95
102
|
@property
|
|
96
103
|
def pglogical_uri(self) -> str:
|
|
97
|
-
|
|
104
|
+
password = quote(
|
|
105
|
+
self.pglogical_user.pw
|
|
106
|
+
) # https://github.com/encode/databases/issues/145#issuecomment-1303792343 need this to handle special characters
|
|
107
|
+
return f"postgresql://{self.pglogical_user.name}:{password}@{self.ip}:{self.port}/{self.db}"
|
|
98
108
|
|
|
99
109
|
|
|
100
110
|
class DbupgradeConfig(BaseModel):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pgbelt"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.4"
|
|
4
4
|
description = "A CLI tool used to manage Postgres data migrations from beginning to end, for a single database or a fleet, leveraging pglogical replication."
|
|
5
5
|
authors = ["Varjitt Jeeva <varjitt.jeeva@autodesk.com>"]
|
|
6
6
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|