From ff8b5f63ca6bf0bdbfd36edcaed4091d9d25c3de Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 10 Feb 2025 22:28:54 +0200 Subject: Add query params to py bindings --- py_bindings/log_db.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py_bindings/log_db.pyi') diff --git a/py_bindings/log_db.pyi b/py_bindings/log_db.pyi index 53aa118..aeb6421 100644 --- a/py_bindings/log_db.pyi +++ b/py_bindings/log_db.pyi @@ -26,11 +26,11 @@ class DB: def configure() -> Config: ... def upsert(self, record: Record) -> None: ... def get(self, key: str) -> Record: ... - def find_by(self, key: str, value: "Value") -> list[Record]: ... - def batch_find_by(self, key: str, values: list["Value"]) -> list[tuple[int, Record]]: ... + def find_by(self, key: str, value: "Value", offset: int = ..., limit: int = ...) -> list[Record]: ... + def batch_find_by(self, key: str, values: list["Value"], offset: int = ..., limit: int = ...) -> list[tuple[int, Record]]: ... def delete(self, key: str) -> list[Record]: ... def delete_by(self, key: str, value: "Value") -> list[Record]: ... - def range_by(self, key: str, start: "Bound", end: "Bound") -> list[Record]: ... + def range_by(self, key: str, start: "Bound", end: "Bound", offset: int = ..., limit: int = ...) -> list[Record]: ... def tx_begin(self) -> None: ... def tx_commit(self) -> None: ... def tx_rollback(self) -> None: ... -- cgit v1.3