paurkedal/ocaml-caqti

postgres driver doesn't load when using pool

joprice opened this issue · 1 comments

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.

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