Hello,
I'm trying the JDBC backend [1] without much success.
create-database
is working fine but all transactions seem to be blocked. There is no error log and the REPL does not give me back the hand.
Any ideas?
Below the transaction I try to execute:
(d/transact conn [{:db/ident :name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one}
{:db/ident :age
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one}])
It works from the clojure REPL but not from socket-repl & chlorine !
I have a problem with konserve/filestore saying that go-try- does not exist, when I load Datahike, anyone got this error?
It happens when I try to use Datahike-jdbc
It is from 0.3.2-SNAPSHOT of Datahike :)
It does not appear with 0.3.1
That's strange. Can you share your configuration?
go-try
comes from superv.asnyc
. I wonder what happens if you would add that directly as dependency. Could you share the other replikativ libraries you are using?
Sure: Datahike config:
(def cfg {:store {:backend :jdbc
:dbtype "postgresql"
:host "localhost"
:user "***"
:password "***"
:dbname "datahike"}})
lein deps:
[org.clojure/clojure "1.10.0"]
[io.replikativ/datahike-jdbc "0.1.1-SNAPSHOT"]
I start socket-repl with:
(clojure.core.server/start-server
{:name "socket-repl"
:port 1234
:accept 'clojure.main/repl
:address "localhost"}
Since then, I made it works by switching from socket-repl to nREPL but that's odd, it's the first time I get an issue with socket-repl.
transact
return a record where I see nothing special. Maybe there is something in chlorine.
Thanks for looking into it. Otherwise it's working great so far.It might be related to a pretty printing issue for socket-repl.
yes! I discuss it on #chlorine too. It's probably that. If I find a fix, I will update the thread with it
Hi @neo2551, I was referring to that when I asked you if you are adventurous:) datahike-jdbc uses the snapshot-versions of konserve and hitchhiker-tree. If you want to use datahike-jdbc you need to exclude konserve when including datahike. It then worked for me when testing it. Please feel free come back to me if you have any problem.