Welcome! Please see the About page for a little more info on how this works.

0 votes
in On-Prem by
edited by

In the peer container:

root@3249b8857f6f:/opt/datomic# bin/repl
Clojure 1.11.4
user=> (Class/forName "org.postgresql.Driver")
org.postgresql.Driver
user=> (require 'datomic.peer-server)
nil
user=> (datomic.peer-server/-main
"-h" "0.0.0.0"
"-p" "8998"
"-a" "none,none"
"-d" "datomic,datomic:sql://mydb?jdbc=postgresql://catalyst-postgres-1:5432/datomic?user=datomic&password=datomic&jdbc-class=org.postgresql.Driver")
Execution error (SQLException) at java.sql.DriverManager/getDriver (DriverManager.java:299).
No suitable driver
user=>

1 Answer

0 votes
ago by
 
Best answer

Hi Chip,

Sorry for the late reply, you need to give your peer (the repl) the postgres dep so it has the driver:

org.postgresql/postgresql {:mvn/version "42.5.1"}

https://docs.datomic.com/operation/storage.html#jdbc-drivers

We only include this dep on the transactor and peers still require configuration.

Cheers,
Jaret

Welcome to the Datomic Knowledgebase, where you can make features requests, ask questions and receive answers from other members of the community.
...