From 3c4f9feb1a9ef05f1175c3cd6c16081e4ebabd4b Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 25 May 2025 16:49:24 +0200 Subject: Store root question in db --- src/chef/database/root_category.clj | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/chef/database/root_category.clj (limited to 'src/chef/database/root_category.clj') diff --git a/src/chef/database/root_category.clj b/src/chef/database/root_category.clj new file mode 100644 index 0000000..a01e3e6 --- /dev/null +++ b/src/chef/database/root_category.clj @@ -0,0 +1,7 @@ +(ns chef.database.root-category + (:require [next.jdbc :as jdbc] + [honey.sql :as sql])) + +(defn exec! [db] + (jdbc/execute! db (sql/format {:insert-into [:categories] + :values [{:id -1}]}))) -- cgit v1.2.3