Skip to content

Create a taskλ︎

Write a function to create tasks in the database

(defn create-task [task-name]
  (sql/insert! postgres
               :tasks [:body] [task-name])
  (println task-name))