当我在 nREPL 中加载 huqsql 命名空间时,会发生这种情况,然后错误看起来像是这样的
Syntax error (FileNotFoundException) compiling at (src/db_examples/hugsql.clj:1:1).
Could not locate hugsql/core__init.class, hugsql/core.clj or hugsql/core.cljc on classpath.
依赖项
[[org.clojure/clojure "1.10.1"]
[seancorfield/next.jdbc "1.1.613"]
[org.postgresql/postgresql "42.2.8"]
[com.layerware/hugsql "0.5.3"]
[hugsql-next-jdbc "0.1.3"]]
命名空间
(ns db-examples.hugsql
(:require [db-examples.core :refer [db]]
[next.jdbc :as jdbc]
[hugsql.core :as hugsql]))
(hugsql/def-db-fns "resources/users.sql")