paurkedal / ocaml-caqti

Cooperative-threaded access to relational data
https://paurkedal.github.io/ocaml-caqti/index.html
GNU Lesser General Public License v3.0
307 stars 36 forks source link

postgres driver doesn't load when using pool #106

Closed joprice closed 1 year ago

joprice commented 1 year ago

When using the postgres driver with a single connection, I can query my database fine, but when trying to use a pool, I get the following error: Neither caqti-driver-postgresql nor the dynamic linker is linked into the application. I saw some other issues where the driver was not loaded due to missing linkall flags and could be worked around by referencing the driver's module, but I tried a few of those and can't seem to get the driver to be recognized when using a pool.

joprice commented 1 year ago

Just figured this out. It was using the dependency caqti-eio instead of caqti-eio.unix.