aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/common.rs
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 /log_db/src/common.rs
parentef72b74ec34e95a38890d542cda298dd6565d5ad (diff)
Add sort_asc param, impl demo chat app
Diffstat (limited to 'log_db/src/common.rs')
-rw-r--r--log_db/src/common.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/log_db/src/common.rs b/log_db/src/common.rs
index ca9f451..0f6a058 100644
--- a/log_db/src/common.rs
+++ b/log_db/src/common.rs
@@ -564,9 +564,11 @@ impl<T> RangeBounds<T> for OwnedBounds<T> {
pub struct QueryParams {
pub offset: usize,
pub limit: usize,
+ pub sort_asc: bool,
}
pub static DEFAULT_QUERY_PARAMS: QueryParams = QueryParams {
offset: 0,
limit: usize::MAX,
+ sort_asc: true,
};