pyspiral 0.7.7__cp312-abi3-macosx_11_0_arm64.whl → 0.7.8__cp312-abi3-macosx_11_0_arm64.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 pyspiral might be problematic. Click here for more details.
- {pyspiral-0.7.7.dist-info → pyspiral-0.7.8.dist-info}/METADATA +1 -1
- {pyspiral-0.7.7.dist-info → pyspiral-0.7.8.dist-info}/RECORD +7 -7
- spiral/_lib.abi3.so +0 -0
- spiral/cli/tables.py +2 -34
- spiral/core/client/__init__.pyi +1 -1
- {pyspiral-0.7.7.dist-info → pyspiral-0.7.8.dist-info}/WHEEL +0 -0
- {pyspiral-0.7.7.dist-info → pyspiral-0.7.8.dist-info}/entry_points.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
pyspiral-0.7.
|
|
2
|
-
pyspiral-0.7.
|
|
3
|
-
pyspiral-0.7.
|
|
1
|
+
pyspiral-0.7.8.dist-info/METADATA,sha256=tGCOA2CfvPk_EGKZ35MCaeZ0x6SIm-XZNnLMHd5ao-U,1874
|
|
2
|
+
pyspiral-0.7.8.dist-info/WHEEL,sha256=KQvxBiy7GLcML6Ad3w_ZPrgSvER1uXd7aYb6wy6b44Y,103
|
|
3
|
+
pyspiral-0.7.8.dist-info/entry_points.txt,sha256=R96Y3FpYX6XbQu9qMPfUTgiCcf4qM9OBQQZTDdBkZwA,74
|
|
4
4
|
spiral/__init__.py,sha256=PwaYBWFBtB7cYi7peMmhk_Lm5XzjRoLwOtLbUhc1ZDo,1449
|
|
5
|
-
spiral/_lib.abi3.so,sha256=
|
|
5
|
+
spiral/_lib.abi3.so,sha256=fSclMfCK-CsL8hz65fdTDqXCH9U4R3AZ3UpeNTLSgj0,70882208
|
|
6
6
|
spiral/adbc.py,sha256=7IxfWIeQN-fh0W5OdN_PP2x3pzQYg6ZUOLsHg3jktqw,14842
|
|
7
7
|
spiral/api/__init__.py,sha256=ULBlVq3PnfNOO6T5naE_ULmmii-83--qTuN2PpAUQN0,2241
|
|
8
8
|
spiral/api/admin.py,sha256=A1iVR1XYJSObZivPAD5UzmPuMgupXc9kaHNYYa_kwfs,585
|
|
@@ -30,7 +30,7 @@ spiral/cli/orgs.py,sha256=fmOuLxpeIFfKqePRi292Gv9k-EF5pPn_tbKd2BLl2Ig,2869
|
|
|
30
30
|
spiral/cli/printer.py,sha256=aosc763hDFgoXJGkiANmNyO3kAsecAS1JWgjEhn8GCM,1784
|
|
31
31
|
spiral/cli/projects.py,sha256=1M1nGrBT-t0aY9RV5Cnmzy7YrhIvmHwdkpa3y9j8rG8,5756
|
|
32
32
|
spiral/cli/state.py,sha256=10wTIVQ0SJkY67Z6-KQ1LFlt3aVIPmZhoHFdTwp4kNA,130
|
|
33
|
-
spiral/cli/tables.py,sha256=
|
|
33
|
+
spiral/cli/tables.py,sha256=Mv6M8zlgG_1i_GsguYIzU-CY2GXq2fMmKnabSMWE1qI,6402
|
|
34
34
|
spiral/cli/telemetry.py,sha256=Uxo1Q1FkKJ6n6QNGOUmL3j_pRRWRx0qWIhoP-U9BuR0,589
|
|
35
35
|
spiral/cli/text.py,sha256=DlWGe4JrkdERAiqyITNpk91Wqb63Re99rNYlIFsIamc,4031
|
|
36
36
|
spiral/cli/types.py,sha256=XYzo1GgX7dBBItoBSrHI4vO5C2lLmS2sktb-2GnGH3E,1362
|
|
@@ -39,7 +39,7 @@ spiral/client.py,sha256=53dVv8wxYMmozUfR8MVcUufKGqdVIdb0yZ0gchczBoQ,6426
|
|
|
39
39
|
spiral/core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
spiral/core/_tools/__init__.pyi,sha256=b2KLfTOQ67pjfbYt07o0IGiTu5o2bZw69lllV8v0Dps,143
|
|
41
41
|
spiral/core/authn/__init__.pyi,sha256=z_GWyIS62fuiYQrYO8hzw4W8oGaiciqS1u5qtAt54VY,769
|
|
42
|
-
spiral/core/client/__init__.pyi,sha256=
|
|
42
|
+
spiral/core/client/__init__.pyi,sha256=YgDM-MoIt3J-QKxvsfs5gRiaTBtOA6TphbNBIAnrFCw,6956
|
|
43
43
|
spiral/core/expr/__init__.pyi,sha256=3HSKjkotiEkxBvGBALXEBIie0JiyI9bCpehwA3nMQkU,571
|
|
44
44
|
spiral/core/expr/images/__init__.pyi,sha256=wnE_wZXq7a4iqTg3SVm-ssxGw1WQZyk5dGOPaP4Btko,73
|
|
45
45
|
spiral/core/expr/list_/__init__.pyi,sha256=Q_9c87eIQfZbqlaw_rq3fvs93YEsW7K5VYk6VZ4g6mU,126
|
|
@@ -106,4 +106,4 @@ spiral/table.py,sha256=p95AYv6b7e14F3t7j-B-r45k9CtG84ngikdlAhh9WxA,12260
|
|
|
106
106
|
spiral/text_index.py,sha256=FQ9rgIEGLSJryS9lFdMhKtPFey18BXoWbPXyvZPJJ04,442
|
|
107
107
|
spiral/transaction.py,sha256=bI5oqBAmPMSF0yOOYcPfGbV37Xc1-_V-wQNKw1xOlTA,4136
|
|
108
108
|
spiral/types_.py,sha256=W_jyO7F6rpPiH69jhgSgV7OxQZbOlb1Ho3InpKUP6Eo,155
|
|
109
|
-
pyspiral-0.7.
|
|
109
|
+
pyspiral-0.7.8.dist-info/RECORD,,
|
spiral/_lib.abi3.so
CHANGED
|
Binary file
|
spiral/cli/tables.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import datetime
|
|
2
1
|
from collections.abc import Callable
|
|
3
|
-
from typing import Annotated
|
|
2
|
+
from typing import Annotated
|
|
4
3
|
|
|
5
4
|
import questionary
|
|
6
5
|
import rich
|
|
@@ -137,40 +136,9 @@ def flush(
|
|
|
137
136
|
project: ProjectArg,
|
|
138
137
|
table: Annotated[str | None, Option(help="Table name.")] = None,
|
|
139
138
|
dataset: Annotated[str | None, Option(help="Dataset name.")] = None,
|
|
140
|
-
keep: Annotated[
|
|
141
|
-
Literal["1h", "2h", "4h"] | None,
|
|
142
|
-
Option(help="Duration string that indicates how much WAL to keep. Defaults to 24h."),
|
|
143
|
-
] = None,
|
|
144
|
-
full: Annotated[bool, Option(help="Flush full Write-Ahead-Log.")] = False,
|
|
145
139
|
):
|
|
146
|
-
# TODO(marko): Use some human-readable duration parsing library.
|
|
147
|
-
duration = None
|
|
148
|
-
if keep is not None:
|
|
149
|
-
if full:
|
|
150
|
-
raise ValueError("Cannot specify both --keep and --full")
|
|
151
|
-
match keep:
|
|
152
|
-
case "1h":
|
|
153
|
-
duration = datetime.timedelta(hours=1)
|
|
154
|
-
case "2h":
|
|
155
|
-
duration = datetime.timedelta(hours=2)
|
|
156
|
-
case "4h":
|
|
157
|
-
duration = datetime.timedelta(hours=4)
|
|
158
|
-
case _:
|
|
159
|
-
raise ValueError(f"Invalid duration string: {keep}")
|
|
160
|
-
|
|
161
|
-
if full:
|
|
162
|
-
# Warn and wait for confirmation.
|
|
163
|
-
ERR_CONSOLE.print("[bold yellow]Warning: All currently open transaction will fail to commit.[/bold yellow]")
|
|
164
|
-
if not questionary.confirm("Are you sure you want to continue?", default=False).ask(): # pyright: ignore[reportAny]
|
|
165
|
-
ERR_CONSOLE.print("Aborting.")
|
|
166
|
-
raise typer.Exit(1)
|
|
167
|
-
|
|
168
|
-
duration = datetime.timedelta(hours=0)
|
|
169
|
-
|
|
170
|
-
keep_latest_s = int(duration.total_seconds()) if duration is not None else None
|
|
171
|
-
|
|
172
140
|
identifier, t = get_table(project, table, dataset)
|
|
173
|
-
state.spiral.internal.flush_wal(t.core
|
|
141
|
+
state.spiral.internal.flush_wal(t.core) # pyright: ignore[reportPrivateUsage]
|
|
174
142
|
CONSOLE.print(f"Flushed WAL for table {identifier} in project {project}.")
|
|
175
143
|
|
|
176
144
|
|
spiral/core/client/__init__.pyi
CHANGED
|
File without changes
|
|
File without changes
|