在我将 huqsql 命名空间加载到 nREPL 中时发生这种情况,然后错误看起来像这样
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")