sudakatux 2020-01-13T13:18:34.006600Z


sudakatux 2020-01-13T13:18:54.007100Z

Im having some trouble in generating the insert statments

sudakatux 2020-01-13T13:19:11.007600Z

Ive followed the book Web development in Clojure

sudakatux 2020-01-13T13:19:20.008Z

and everything seems to work

sudakatux 2020-01-13T13:19:48.008700Z

however when i try to use insert or update statments the namespace is no longer usable

sudakatux 2020-01-13T13:20:19.009Z

-- :name create-user!* :! :n
-- :doc creates a new user record
(first_name, last_name, email)
VALUES (:first_name, :last_name, :email)

-- :name get-user-for-auth* :? :1
-- :doc selects a user for authentication
WHERE email = :email

sudakatux 2020-01-13T13:20:38.009200Z

if i comment out the first one

sudakatux 2020-01-13T13:20:54.009600Z

i can call db/get-user-for-auth*

sudakatux 2020-01-13T13:21:15.010Z

if i leave it as is

sudakatux 2020-01-13T13:21:24.010300Z

then i get :

sudakatux 2020-01-13T13:21:28.010600Z

Syntax error compiling at (auth.clj:17:31).
No such var: db/create-user!*

sudakatux 2020-01-13T13:21:47.010900Z

when syncing files with the repl

sudakatux 2020-01-13T13:22:05.011400Z

I tried with a normal update statement and it doesnt work either.

sudakatux 2020-01-13T13:22:47.012200Z

seems to be a problem with INSERT or UPDATE. I cant tell

sudakatux 2020-01-13T13:36:43.012500Z

Im using the same version template as in the book

sudakatux 2020-01-13T14:07:55.013Z

I solved it

sudakatux 2020-01-13T14:08:02.013300Z

I just went to the db workspace

sudakatux 2020-01-13T14:08:37.013900Z

and re-runned (conman/bind-connection