summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-10-13 23:10:38 +0600
committerunwox <me@unwox.com>2025-10-13 23:48:17 +0600
commit7f6c204322aa13dd8a9760b311955fc4b9a92637 (patch)
tree0c1d66d123398dacc0851b1c1589a7e3730761f5 /bin
parent5cf21fcb8c91896bb2b889dd4a90cc0b2ef3e9e5 (diff)
add simple filtering
Diffstat (limited to 'bin')
-rw-r--r--bin/serve.fnl3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl
index 0948a83..a1d1737 100644
--- a/bin/serve.fnl
+++ b/bin/serve.fnl
@@ -43,6 +43,9 @@
expires_at TEXT NOT NULL
);
+ CREATE VIRTUAL TABLE IF NOT EXISTS products_search
+ USING fts5(title, short_description, name);
+
CREATE TABLE IF NOT EXISTS products(
name TEXT PRIMARY KEY,
creation_time TEXT NOT NULL,