This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-16
Channels
- # announcements (3)
- # babashka (48)
- # beginners (35)
- # calva (3)
- # chlorine-clover (5)
- # clj-kondo (9)
- # cljdoc (20)
- # cljsrn (1)
- # clojure (55)
- # clojure-europe (33)
- # clojure-nl (3)
- # clojure-norway (6)
- # clojure-spec (7)
- # clojure-uk (27)
- # clojurescript (95)
- # closh (1)
- # conjure (1)
- # cursive (16)
- # datomic (30)
- # emacs (7)
- # honeysql (1)
- # hugsql (2)
- # introduce-yourself (2)
- # jobs (1)
- # lsp (30)
- # malli (22)
- # nbb (11)
- # news-and-articles (1)
- # off-topic (8)
- # pathom (21)
- # polylith (41)
- # portal (4)
- # practicalli (4)
- # protojure (1)
- # re-frame (14)
- # releases (1)
- # restql (1)
- # reveal (24)
- # sci (1)
- # sql (21)
- # vim (11)
- # xtdb (33)
hi. has anyone had any experience of issues with hugsql + sqlite + next.jdbc? am trying to migrate and am hitting
1. Unhandled java.lang.IllegalArgumentException
No implementation of method: :on-exception of protocol:
#'hugsql.adapter/HugsqlAdapter found for class:
hugsql.adapter.next_jdbc$hugsql_adapter_next_jdbc
not sure where to start.enki.db> db
#object[next.jdbc.connection$url_PLUS_etc$reify__21761 0x7b81d4ad "jdbc:sqlite:/home/dsp/.enki.db"]
enki.db> (j/execute! db ["CREATE TABLE test (test text)"])
[#:next.jdbc{:update-count 0}]
but running my create data table function for eg (create-data-table db)
fails with the error above. while it worked fine before trying to change the adapter.
ds is {:dbtype "sqlite", :dbname "/home/dsp/.enki.db"}
and db is just with (j/get-datasource ds)
. db fns are defined with (hugsql/def-db-fns path-to-sql-file {:adapter adapter/hugsql-adapter-next-jdbc)