diff options
Diffstat (limited to 'src/chef/database')
-rw-r--r-- | src/chef/database/root_category.clj | 7 |
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}]}))) |