summaryrefslogtreecommitdiff
path: root/src/chef/database
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-05-25 16:49:24 +0200
committerTim <contact@bytim.eu>2025-05-25 16:49:24 +0200
commit3c4f9feb1a9ef05f1175c3cd6c16081e4ebabd4b (patch)
tree4fd627a4fad4eaed51146b58798d3de71bcbb716 /src/chef/database
parentaaf4304c7cf6259fc00366608ce643cf9697a887 (diff)
downloadchef-3c4f9feb1a9ef05f1175c3cd6c16081e4ebabd4b.tar.xz
chef-3c4f9feb1a9ef05f1175c3cd6c16081e4ebabd4b.zip
Store root question in db
Diffstat (limited to 'src/chef/database')
-rw-r--r--src/chef/database/root_category.clj7
1 files changed, 7 insertions, 0 deletions
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}]})))