dycw-utilities 0.149.3__py3-none-any.whl → 0.149.5__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.149.3.dist-info → dycw_utilities-0.149.5.dist-info}/METADATA +1 -1
- {dycw_utilities-0.149.3.dist-info → dycw_utilities-0.149.5.dist-info}/RECORD +7 -7
- utilities/__init__.py +1 -1
- utilities/postgres.py +14 -12
- {dycw_utilities-0.149.3.dist-info → dycw_utilities-0.149.5.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.149.3.dist-info → dycw_utilities-0.149.5.dist-info}/entry_points.txt +0 -0
- {dycw_utilities-0.149.3.dist-info → dycw_utilities-0.149.5.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
utilities/__init__.py,sha256=
|
1
|
+
utilities/__init__.py,sha256=vP9uEk8K9InRk9c2ZYKCdBiTBAYA2kqBz4C3yEtM2FU,60
|
2
2
|
utilities/altair.py,sha256=92E2lCdyHY4Zb-vCw6rEJIsWdKipuu-Tu2ab1ufUfAk,9079
|
3
3
|
utilities/asyncio.py,sha256=z0w3fb-U5Ml5YXVaFFPClizXaQmjDO6YgZg-V9QL0VQ,16021
|
4
4
|
utilities/atomicwrites.py,sha256=xcOWenTBRS0oat3kg7Sqe51AohNThMQ2ixPL7QCG8hw,5795
|
@@ -48,7 +48,7 @@ utilities/pickle.py,sha256=MBT2xZCsv0pH868IXLGKnlcqNx2IRVKYNpRcqiQQqxw,653
|
|
48
48
|
utilities/platform.py,sha256=Ue9LSxYvg9yUXGKuz5aZoy_qkUEXde-v6B09exgSctU,2813
|
49
49
|
utilities/polars.py,sha256=BgiDryAVOapi41ddfJqN0wYh_sDj8BNEYtPB36LaHdo,71824
|
50
50
|
utilities/polars_ols.py,sha256=Uc9V5kvlWZ5cU93lKZ-cfAKdVFFw81tqwLW9PxtUvMs,5618
|
51
|
-
utilities/postgres.py,sha256=
|
51
|
+
utilities/postgres.py,sha256=C3TxpQymM7S5ZivxIN_AFTM5g5TtENptzx8-XYf7pow,12182
|
52
52
|
utilities/pottery.py,sha256=w2X80PXWwzdHdqSYJP6ESrPNNDP3xzpyuJn-fp-Vt3M,5969
|
53
53
|
utilities/pqdm.py,sha256=BTsYPtbKQWwX-iXF4qCkfPG7DPxIB54J989n83bXrIo,3092
|
54
54
|
utilities/psutil.py,sha256=KUlu4lrUw9Zg1V7ZGetpWpGb9DB8l_SSDWGbANFNCPU,2104
|
@@ -88,8 +88,8 @@ utilities/zoneinfo.py,sha256=oEH-nL3t4h9uawyZqWDtNtDAl6M-CLpLYGI_nI6DulM,1971
|
|
88
88
|
utilities/pytest_plugins/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
|
89
89
|
utilities/pytest_plugins/pytest_randomly.py,sha256=NXzCcGKbpgYouz5yehKb4jmxmi2SexKKpgF4M65bi10,414
|
90
90
|
utilities/pytest_plugins/pytest_regressions.py,sha256=Iwhfv_OJH7UCPZCfoh7ugZ2Xjqjil-BBBsOb8sDwiGI,1471
|
91
|
-
dycw_utilities-0.149.
|
92
|
-
dycw_utilities-0.149.
|
93
|
-
dycw_utilities-0.149.
|
94
|
-
dycw_utilities-0.149.
|
95
|
-
dycw_utilities-0.149.
|
91
|
+
dycw_utilities-0.149.5.dist-info/METADATA,sha256=Y0EsMDzmsJGw-OkMdkFJLbWwAnTXgoAzwebowBu_YlQ,1697
|
92
|
+
dycw_utilities-0.149.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
93
|
+
dycw_utilities-0.149.5.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
|
94
|
+
dycw_utilities-0.149.5.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
|
95
|
+
dycw_utilities-0.149.5.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/postgres.py
CHANGED
@@ -187,10 +187,11 @@ async def restore(
|
|
187
187
|
psql: bool = False,
|
188
188
|
database: str | None = None,
|
189
189
|
data_only: bool = False,
|
190
|
+
clean: bool = False,
|
190
191
|
jobs: int | None = None,
|
191
|
-
|
192
|
-
|
193
|
-
|
192
|
+
schema: MaybeListStr | None = None,
|
193
|
+
schema_exc: MaybeListStr | None = None,
|
194
|
+
table: MaybeSequence[TableOrORMInstOrClass | str] | None = None,
|
194
195
|
docker: str | None = None,
|
195
196
|
dry_run: bool = False,
|
196
197
|
logger: LoggerOrName | None = None,
|
@@ -202,10 +203,11 @@ async def restore(
|
|
202
203
|
psql=psql,
|
203
204
|
database=database,
|
204
205
|
data_only=data_only,
|
206
|
+
clean=clean,
|
205
207
|
jobs=jobs,
|
206
|
-
|
207
|
-
|
208
|
-
|
208
|
+
schema=schema,
|
209
|
+
schema_exc=schema_exc,
|
210
|
+
table=table,
|
209
211
|
docker=docker,
|
210
212
|
)
|
211
213
|
if dry_run:
|
@@ -250,9 +252,9 @@ def _build_pg_restore_or_psql(
|
|
250
252
|
data_only: bool = False,
|
251
253
|
clean: bool = False,
|
252
254
|
jobs: int | None = None,
|
253
|
-
|
254
|
-
|
255
|
-
|
255
|
+
schema: MaybeListStr | None = None,
|
256
|
+
schema_exc: MaybeListStr | None = None,
|
257
|
+
table: MaybeSequence[TableOrORMInstOrClass | str] | None = None,
|
256
258
|
docker: str | None = None,
|
257
259
|
) -> str:
|
258
260
|
path = Path(path)
|
@@ -265,9 +267,9 @@ def _build_pg_restore_or_psql(
|
|
265
267
|
data_only=data_only,
|
266
268
|
clean=clean,
|
267
269
|
jobs=jobs,
|
268
|
-
schemas=
|
269
|
-
schemas_exc=
|
270
|
-
tables=
|
270
|
+
schemas=schema,
|
271
|
+
schemas_exc=schema_exc,
|
272
|
+
tables=table,
|
271
273
|
docker=docker,
|
272
274
|
)
|
273
275
|
|
File without changes
|
File without changes
|
File without changes
|