dycw-utilities 0.150.5__py3-none-any.whl → 0.150.7__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.
- {dycw_utilities-0.150.5.dist-info → dycw_utilities-0.150.7.dist-info}/METADATA +1 -1
- {dycw_utilities-0.150.5.dist-info → dycw_utilities-0.150.7.dist-info}/RECORD +7 -7
- utilities/__init__.py +1 -1
- utilities/postgres.py +14 -2
- {dycw_utilities-0.150.5.dist-info → dycw_utilities-0.150.7.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.150.5.dist-info → dycw_utilities-0.150.7.dist-info}/entry_points.txt +0 -0
- {dycw_utilities-0.150.5.dist-info → dycw_utilities-0.150.7.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
utilities/__init__.py,sha256=
|
1
|
+
utilities/__init__.py,sha256=A1YeWIQQEjqfqiCFF31G03YhEM20RzT8IBH3dcnt8d4,60
|
2
2
|
utilities/altair.py,sha256=92E2lCdyHY4Zb-vCw6rEJIsWdKipuu-Tu2ab1ufUfAk,9079
|
3
3
|
utilities/asyncio.py,sha256=2m2a2C-Qgc6OHTTHL332-t66A7xDITt_SORT7a1DJWo,16792
|
4
4
|
utilities/atomicwrites.py,sha256=xcOWenTBRS0oat3kg7Sqe51AohNThMQ2ixPL7QCG8hw,5795
|
@@ -49,7 +49,7 @@ utilities/pickle.py,sha256=MBT2xZCsv0pH868IXLGKnlcqNx2IRVKYNpRcqiQQqxw,653
|
|
49
49
|
utilities/platform.py,sha256=Ue9LSxYvg9yUXGKuz5aZoy_qkUEXde-v6B09exgSctU,2813
|
50
50
|
utilities/polars.py,sha256=BgiDryAVOapi41ddfJqN0wYh_sDj8BNEYtPB36LaHdo,71824
|
51
51
|
utilities/polars_ols.py,sha256=Uc9V5kvlWZ5cU93lKZ-cfAKdVFFw81tqwLW9PxtUvMs,5618
|
52
|
-
utilities/postgres.py,sha256=
|
52
|
+
utilities/postgres.py,sha256=L1cunDLu8nK5fCkY9fTgSTHjT1_B8Y0iUJEjPC7Ar3A,13849
|
53
53
|
utilities/pottery.py,sha256=u0uvyGgYyujxftEMlsv6ppYTKQoVVjHt5jnVxxYz9s4,6596
|
54
54
|
utilities/pqdm.py,sha256=BTsYPtbKQWwX-iXF4qCkfPG7DPxIB54J989n83bXrIo,3092
|
55
55
|
utilities/psutil.py,sha256=KUlu4lrUw9Zg1V7ZGetpWpGb9DB8l_SSDWGbANFNCPU,2104
|
@@ -89,8 +89,8 @@ utilities/zoneinfo.py,sha256=oEH-nL3t4h9uawyZqWDtNtDAl6M-CLpLYGI_nI6DulM,1971
|
|
89
89
|
utilities/pytest_plugins/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
|
90
90
|
utilities/pytest_plugins/pytest_randomly.py,sha256=NXzCcGKbpgYouz5yehKb4jmxmi2SexKKpgF4M65bi10,414
|
91
91
|
utilities/pytest_plugins/pytest_regressions.py,sha256=Iwhfv_OJH7UCPZCfoh7ugZ2Xjqjil-BBBsOb8sDwiGI,1471
|
92
|
-
dycw_utilities-0.150.
|
93
|
-
dycw_utilities-0.150.
|
94
|
-
dycw_utilities-0.150.
|
95
|
-
dycw_utilities-0.150.
|
96
|
-
dycw_utilities-0.150.
|
92
|
+
dycw_utilities-0.150.7.dist-info/METADATA,sha256=RtXoOrng-vQlgoP2v8k9pfCYWGKzLTAAXhfQN7UADA4,1696
|
93
|
+
dycw_utilities-0.150.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
94
|
+
dycw_utilities-0.150.7.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
|
95
|
+
dycw_utilities-0.150.7.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
|
96
|
+
dycw_utilities-0.150.7.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/postgres.py
CHANGED
@@ -37,6 +37,8 @@ async def pg_dump(
|
|
37
37
|
data_only: bool = False,
|
38
38
|
clean: bool = False,
|
39
39
|
create: bool = False,
|
40
|
+
extension: MaybeListStr | None = None,
|
41
|
+
extension_exc: MaybeListStr | None = None,
|
40
42
|
schema: MaybeListStr | None = None,
|
41
43
|
schema_exc: MaybeListStr | None = None,
|
42
44
|
table: MaybeSequence[TableOrORMInstOrClass | str] | None = None,
|
@@ -59,6 +61,8 @@ async def pg_dump(
|
|
59
61
|
data_only=data_only,
|
60
62
|
clean=clean,
|
61
63
|
create=create,
|
64
|
+
extension=extension,
|
65
|
+
extension_exc=extension_exc,
|
62
66
|
schema=schema,
|
63
67
|
schema_exc=schema_exc,
|
64
68
|
table=table,
|
@@ -70,7 +74,7 @@ async def pg_dump(
|
|
70
74
|
)
|
71
75
|
if dry_run:
|
72
76
|
if logger is not None:
|
73
|
-
get_logger(logger=logger).info("Would run
|
77
|
+
get_logger(logger=logger).info("Would run:\n\t%r", str(cmd))
|
74
78
|
return
|
75
79
|
with temp_environ(PGPASSWORD=url.password), Timer() as timer: # pragma: no cover
|
76
80
|
try:
|
@@ -109,6 +113,8 @@ def _build_pg_dump(
|
|
109
113
|
data_only: bool = False,
|
110
114
|
clean: bool = False,
|
111
115
|
create: bool = False,
|
116
|
+
extension: MaybeListStr | None = None,
|
117
|
+
extension_exc: MaybeListStr | None = None,
|
112
118
|
schema: MaybeListStr | None = None,
|
113
119
|
schema_exc: MaybeListStr | None = None,
|
114
120
|
table: MaybeSequence[TableOrORMInstOrClass | str] | None = None,
|
@@ -141,6 +147,12 @@ def _build_pg_dump(
|
|
141
147
|
parts.append(f"--jobs={jobs}")
|
142
148
|
if create:
|
143
149
|
parts.append("--create")
|
150
|
+
if extension is not None:
|
151
|
+
parts.extend([f"--extension={e}" for e in always_iterable(extension)])
|
152
|
+
if extension_exc is not None:
|
153
|
+
parts.extend([
|
154
|
+
f"--exclude-extension={e}" for e in always_iterable(extension_exc)
|
155
|
+
])
|
144
156
|
if schema is not None:
|
145
157
|
parts.extend([f"--schema={s}" for s in always_iterable(schema)])
|
146
158
|
if schema_exc is not None:
|
@@ -222,7 +234,7 @@ async def restore(
|
|
222
234
|
)
|
223
235
|
if dry_run:
|
224
236
|
if logger is not None:
|
225
|
-
get_logger(logger=logger).info("Would run
|
237
|
+
get_logger(logger=logger).info("Would run:\n\t%r", str(cmd))
|
226
238
|
return
|
227
239
|
with temp_environ(PGPASSWORD=url.password), Timer() as timer: # pragma: no cover
|
228
240
|
try:
|
File without changes
|
File without changes
|
File without changes
|