ocaml-mysql
ocaml-mysql copied to clipboard
OCaml bindings to libmysqlclient
Newer versions of OCaml have a `custom_fixed_length` element in `struct custom_operations`.
What I have found was that `my_bool` was replaced by `bool` from `stdbool.h`, and `MYSQL_SECURE_AUTH` is now default and can't be selected and the `VERIFY_CERTIFICATE` options changed. Maybe more. I...
https://github.com/ygrek/ocaml-mysql/blob/ac1fddf6cfcd9f80c55c11ab8856f9a4810ba5da/mysql_stubs.c#L175-L177 Here and in other finalization functions in this file, it is unsafe to use enter/leave_blocking_section in C finalizers, as per the documentation (this can cause the GC to run)....
Hi, Thank you very much for this library. We have been using it for many years. We were trying to move to reinstall the library in Ubuntu 20.04. We have...
It is helpful for performance reasons to be able to send multiple statements (e.g. updates) for execution in a single request. MySQL 5.6 and above support [multiple-statement execution](https://dev.mysql.com/doc/refman/5.6/en/c-api-multiple-queries.html). However, ocaml-mysql...
MySQL needs a buffer to do conversion to MYSQL_TYPE_STRING. Otherwise length is 0 for FLOAT and DOUBLE. Ref #3
We were wondering why we sometimes get less than our `LIMIT 100` results on our queries, even though the should still have been more results. This is important because we...
Closes #12.
I'm taking a look at `ocaml-mysql` for interfacing with Google Cloud SQL. Since the application uses Lwt, I'm using `Lwt_preemptive.detach` to get around `ocaml-mysql` offering only a blocking API. There...
``` module M = Mysql module P = Mysql.Prepared let () = let db = M.quick_connect ~database:"test" () in let _ = M.exec db "create table if not exists x(f...