Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pygrist_mini/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ def delete_records(self, table_id: str | int, ids: Sequence[int]) -> None:
json=list(ids))

def sql(
self, query: str, args: dict[str, Any] | None = None,
timeout: float | None = None) -> Sequence[dict[str, Any]]:
self, query: str, args: Sequence[object] | None = None,
timeout: float | None = None) -> Sequence[dict[str, object]]:

json_body: dict[str, Any] = {"sql": query}
json_body: dict[str, object] = {"sql": query}
if args is not None:
json_body["args"] = args
if timeout is not None:
json_body["timeout"] = args
json_body["timeout"] = timeout
return [rec["fields"]
for rec in self._post_json(
f"/docs/{self.doc_id}/sql",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pygrist_mini"
version = "2025.1.2"
version = "2026.1"
authors = [
{name = "Andreas Kloeckner", email = "inform@tiker.net"},
]
Expand Down