Hi
Im having some trouble in generating the insert statments
Ive followed the book Web development in Clojure
and everything seems to work
however when i try to use insert or update statments the namespace is no longer usable
-- :name create-user!* :! :n
-- :doc creates a new user record
INSERT INTO users
(first_name, last_name, email)
VALUES (:first_name, :last_name, :email)
-- :name get-user-for-auth* :? :1
-- :doc selects a user for authentication
SELECT * FROM users
WHERE email = :email
if i comment out the first one
i can call db/get-user-for-auth*
if i leave it as is
then i get :
Syntax error compiling at (auth.clj:17:31).
No such var: db/create-user!*
when syncing files with the repl
I tried with a normal update statement and it doesnt work either.
seems to be a problem with INSERT or UPDATE. I cant tell
Im using the same version template as in the book
I solved it
I just went to the db workspace
and re-runned (conman/bind-connection