pgbelt 0.6.0__tar.gz → 0.6.1__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.
Files changed (26) hide show
  1. {pgbelt-0.6.0 → pgbelt-0.6.1}/PKG-INFO +1 -1
  2. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/pglogical.py +3 -8
  3. {pgbelt-0.6.0 → pgbelt-0.6.1}/pyproject.toml +10 -10
  4. {pgbelt-0.6.0 → pgbelt-0.6.1}/LICENSE +0 -0
  5. {pgbelt-0.6.0 → pgbelt-0.6.1}/README.md +0 -0
  6. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/__init__.py +0 -0
  7. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/__init__.py +0 -0
  8. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/convenience.py +0 -0
  9. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/helpers.py +0 -0
  10. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/login.py +0 -0
  11. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/preflight.py +0 -0
  12. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/schema.py +0 -0
  13. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/setup.py +0 -0
  14. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/status.py +0 -0
  15. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/sync.py +0 -0
  16. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/cmd/teardown.py +0 -0
  17. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/config/__init__.py +0 -0
  18. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/config/config.py +0 -0
  19. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/config/models.py +0 -0
  20. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/config/remote.py +0 -0
  21. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/main.py +0 -0
  22. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/__init__.py +0 -0
  23. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/asyncfuncs.py +0 -0
  24. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/dump.py +0 -0
  25. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/logs.py +0 -0
  26. {pgbelt-0.6.0 → pgbelt-0.6.1}/pgbelt/util/postgres.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pgbelt
3
- Version: 0.6.0
3
+ Version: 0.6.1
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
@@ -215,14 +215,9 @@ async def revoke_pgl(pool: Pool, tables: list[str], logger: Logger) -> None:
215
215
  async with pool.acquire() as conn:
216
216
  async with conn.transaction():
217
217
  try:
218
- if tables:
219
- await conn.execute(
220
- f"REVOKE ALL ON TABLE {','.join(tables)} FROM pglogical;"
221
- )
222
- else:
223
- await conn.execute(
224
- "REVOKE ALL ON ALL TABLES IN SCHEMA public FROM pglogical;"
225
- )
218
+ await conn.execute(
219
+ "REVOKE ALL ON ALL TABLES IN SCHEMA public FROM pglogical;"
220
+ )
226
221
  await conn.execute(
227
222
  "REVOKE ALL ON ALL SEQUENCES IN SCHEMA public FROM pglogical;"
228
223
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pgbelt"
3
- version = "0.6.0"
3
+ version = "0.6.1"
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"
@@ -18,14 +18,14 @@ tabulate = "^0.9.0"
18
18
  typer = "^0.9.0"
19
19
 
20
20
  [tool.poetry.dev-dependencies]
21
- black = "~23.11.0"
22
- pre-commit = "~3.5.0"
23
- flake8 = "^6.0.0"
21
+ black = "~23.12.1"
22
+ pre-commit = "~3.6.0"
23
+ flake8 = "^7.0.0"
24
24
  pytest-cov = "~4.1.0"
25
- pytest = "^7.4.3"
26
- coverage = {extras = ["toml"], version = "^7.2"}
25
+ pytest = "^7.4.4"
26
+ coverage = {extras = ["toml"], version = "^7.4"}
27
27
  safety = "^2.3.1"
28
- mypy = "^1.7"
28
+ mypy = "^1.8"
29
29
  xdoctest = {extras = ["colors"], version = "^1.1.2"}
30
30
  flake8-bandit = "~4.1.1"
31
31
  flake8-bugbear = ">=21.9.2"
@@ -35,10 +35,10 @@ pep8-naming = "^0.13.2"
35
35
  darglint = "^1.8.1"
36
36
  reorder-python-imports = "^3.9.0"
37
37
  pre-commit-hooks = "^4.5.0"
38
- Pygments = "^2.17.1"
38
+ Pygments = "^2.17.2"
39
39
  pyupgrade = "^3.15.0"
40
- pylint = "^3.0.2"
41
- pytest-asyncio = "~0.21.0"
40
+ pylint = "^3.0.3"
41
+ pytest-asyncio = "~0.23.3"
42
42
 
43
43
  [build-system]
44
44
  requires = ["poetry-core>=1.0.0", "setuptools"]
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