package mariadb

All checked builds pass
  1. Overview
  2. Docs
OCaml bindings for MariaDB

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mariadb-v2.2.1.tbz
sha256=ced29932b7dd0f7b67711198b55971e7c9269728f534185a064fec2d27583f2d
sha512=86f48143b79bc5bc79de8d6197cc983fb9f50db5d3ae1b4edadc2deb352c1e231de55e51ad4a664c05296bf14df7f802e5aedc296eb26dcf9001778265ed0ca7

doc/CHANGES.html

2.2.1 - 2026-11-10

  • Further optimised decoding (#78 by Albert Peschar).
  • Raise exception on attempt to use a closed handle.

2.2.0 - 2026-09-30

  • Bulk-copy string and blob result fields (#75 by Albert Peschar).
  • Reuse column field handles within each result (#76 by Albert Peschar).
  • Avoid second copy of string result fields (#77 by Albert Peschar).

2.1.0 - 2026-08-26

  • Added support for text protocol (non-prepared) execution of statements (#72 by jongleb). This is limited to statements which do not return any result, which should cover primary use cases like changing settings or deploying schema definitions.
  • Optimised encoding of string and blob parameters (#73 by jongleb).
  • Added support for SQLSTATE to the extend implemented in C library (#42 by Petter A. Urkedal).

2.0.0 - 2026-07-27

  • Added support for signed and unsigned 64 bit integers (#66 by Mauricio Fernández).
  • Added some reasonable conversions for integer extractors, esp. to avoid predicting the type in case of expressions.
  • Added JSON type support (#69 by Javier Chavarri, jongleb, Gleb Patsiia, and Petter A. Urkedal).
  • Fixed error reporting for blocking connect (#70 by Petter A. Urkedal).

1.3.0 - 2025-05-08

  • The mariadb_config and mysql_config scripts are now used, if available, to discover MariaDB client library (#65 by Albert Peschar).
  • Added server-side properties get_server_info, get_server_version, get_host_info and get_proto_info (#62 by Petter A. Urkedal).
  • Avoid calling mysql_stmt_free_result if there is no result set, since this is not allowed by recent versions of the client library (by Petter A. Urkedal, fixes #64).
  • Avoid possibly blocking calls to mysql_free_result in the nonblocking implementation. This was only an issue if a previous result set had not been consumed (#68 by Petter A. Urkedal, fixes #67).
  • Fix memory leak in non-blocking test suite (Petter A. Urkedal, fixes #29).

1.2.0 - 2024-11-28

  • Added Stmt.start_txn (#59 by Corentin Leruth).
  • Added Res.insert_id as binding for mysql_stmt_insert_id (#58 by Corentin Leruth).
  • Updated to support recent OCaml versions (#45 by @kit-ty-kate).
  • Fixed too-early retrieval of statement metadata (#41 by Albert Peschar).
  • Fixed decoding bug for the integer type (#54 by Raman Varabets, tested by #61 by Corentin Leruth).
  • Fixed a memory leaks related to result metadata (#39 by Albert Peschar).
  • The build system is now dune and dune-configurator (#52 by Petter A. Urkedal) and some of the examples have been converted to a test suite (#60 by Petter A. Urkedal).
  • The project has been transferred to ocaml-community with Petter A. Urkedal as the new maintainer.