Closed anmonteiro closed 1 year ago
The error is:
x: Failed to load driver for $DB_URI: Neither caqti-driver-postgresql nor the dynamic linker is linked into the application.
OK This seems to work with caqti-eio.unix
instead, but I'm not sure why.
And confirmed again it works but I actually need to use the Caqti_eio_unix
module. Again, sorry for all the noise.
Yes, the unix
flavour is needed for drivers based on bindings; PGX is the only driver which works without it.
It looks like the most recent commits address the duplication here? specifically https://github.com/paurkedal/ocaml-caqti/commit/34ea92750b7e85d8bc245deb072e32461a5d9aa9
I don't tihnk so. The commit is cosmetic, removing some aliases. One can still use the Caqti_eio.connect_pool
and get the same error for non-PGX drivers.
Compare the same 2 programs in Lwt / EIO: