From b26cabb55ab3e74f6ebbfd6e5c36aca5fe6006b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 12 Sep 2026 09:06:35 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20feat:=20From>/From>=20for=20Param=20(L8/L10=20clearable=20c?= =?UTF-8?q?olumns)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/page.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/db/page.rs b/src/db/page.rs index 24050ae..aaad814 100644 --- a/src/db/page.rs +++ b/src/db/page.rs @@ -115,6 +115,18 @@ impl From> for Param { } } +impl From> for Param { + fn from(value: Option) -> Self { + Self::OptText(value) + } +} + +impl From> for Param { + fn from(value: Option) -> Self { + Self::OptI64(value) + } +} + pub(crate) struct PagedList { /// Everything after `FROM`, e.g. `note WHERE user_id = $1`. Placeholders /// are positional in [`PagedList::bind`] order; shared verbatim by the