aboutsummaryrefslogtreecommitdiffstats
path: root/py_bindings/log_db.pyi
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-05-02 23:38:23 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-05-02 23:38:23 +0300
commite17048eddfe2df86abd2d498da2a33b9c3dd8a72 (patch)
tree4e6799cdfb0e05c9df499bcf8ec4d33d8d5ec3fd /py_bindings/log_db.pyi
parentef72b74ec34e95a38890d542cda298dd6565d5ad (diff)
Add sort_asc param, impl demo chat app
Diffstat (limited to 'py_bindings/log_db.pyi')
-rw-r--r--py_bindings/log_db.pyi6
1 files changed, 3 insertions, 3 deletions
diff --git a/py_bindings/log_db.pyi b/py_bindings/log_db.pyi
index aeb6421..9a6db62 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", 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 find_by(self, key: str, value: "Value", offset: int = ..., limit: int = ..., sort_asc: bool = ...) -> list[Record]: ...
+ def batch_find_by(self, key: str, values: list["Value"], offset: int = ..., limit: int = ..., sort_asc: bool = ...) -> 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", offset: int = ..., limit: int = ...) -> list[Record]: ...
+ def range_by(self, key: str, start: "Bound", end: "Bound", offset: int = ..., limit: int = ..., sort_asc: bool = ...) -> list[Record]: ...
def tx_begin(self) -> None: ...
def tx_commit(self) -> None: ...
def tx_rollback(self) -> None: ...