postgresql-ocaml
postgresql-ocaml copied to clipboard
OCaml-bindings for the PostgreSQL database
[PQexecParams_stub](https://github.com/mmottl/postgresql-ocaml/blob/master/src/postgresql_stubs.c#L643) takes a `v_binary_result` argument, which tells postgres to use the text or binary format. [PQexecPrepared](https://www.postgresql.org/docs/9.1/libpq-exec.html) has the same argument, [but the value is hardcoded to "text"](https://github.com/mmottl/postgresql-ocaml/blob/master/src/postgresql_stubs.c#L727). @mmottl: would you...
Sorry for the sparse report, I'm not sure where the issue is exactly at this point given there are quite a few pieces that changed all at once! Running into...
I've adapted a part of the prompt.ml example to be able to get postgres notifications into this code: ```ocaml let run () = let rec dump_notification conn = match conn#notifies...
- PostgreSQL installations also add `pkg-config` configuration files. - In cross-compilation scenarios, calling out to `pg_config` will list the wrong `--libdir` - This change uses `pkg-config` to find the C...
The special exception part of the license file says: >By "a publicly distributed version of the Library", we mean either the unmodified Library as distributed by the authors, or a...
I would suggest to use Postgresql.null for null value. This way physical equality can distinguish the NULL value and the empty string. Accessing the result to know is a parameter...
The socket method is unusable with type int, for instance with select in async mode. This solves the problem. I think there is no way in Stdlib to convert int...
Is there any example code for pg notification?
May be one could provide a few functions to translate binary format ? At least the upper part reading the rows and columns in binary result ?