datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
jba 2020-09-11T09:50:47.044Z

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}])

jba 2020-09-11T10:06:09.044100Z

It works from the clojure REPL but not from socket-repl & chlorine !

2020-09-11T12:02:24.045700Z

I have a problem with konserve/filestore saying that go-try- does not exist, when I load Datahike, anyone got this error?

2020-09-11T12:05:04.046100Z

It happens when I try to use Datahike-jdbc

2020-09-11T12:09:50.046700Z

It is from 0.3.2-SNAPSHOT of Datahike :)

2020-09-11T12:10:02.047100Z

It does not appear with 0.3.1

kkuehne 2020-09-11T13:37:36.047200Z

That's strange. Can you share your configuration?

kkuehne 2020-09-11T13:41:21.047800Z

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?

jba 2020-09-11T16:02:44.048Z

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.

whilo 2020-09-11T17:17:03.048400Z

It might be related to a pretty printing issue for socket-repl.

jba 2020-09-11T17:58:36.048600Z

yes! I discuss it on #chlorine too. It's probably that. If I find a fix, I will update the thread with it

timo 2020-09-11T19:38:20.052400Z

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.