package sqlite3

  1. Overview
  2. Docs
SQLite3 bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

sqlite3-5.2.0.tbz
sha256=942283a454f4b21f7517f2e8be3d3a30594779c78a6b0478f4b70b8ca7c98cbb
sha512=59ed9dfe340339228513c77f04abaf2a4b42428c0d41f4c9ced17ce24378635d4d0a71329794164ea324365e6021d954ea0ddad76a6992d71c9585f390516ad8

doc/CHANGES.html

5.2.0 (2024-08-01)

  • Support MSVC compiler (Jonah Beckford)
  • Add extended_errcode_int function (Petter A. Urkedal)
  • Fix memory alloc in caml_sqlite3_backup_init() (Mark Elvers, Pierre Boutillier, and Benjamin Canou)
  • Add Github CI (Yilin Wei)
  • Detect pkgconf on Windows/mingw (Mark Elvers, reviewed by Shon Feder)
  • Fixed shadowing of agg_ctx when using sizeof.
  • Formatted sources using ocamlformat and clang-format.
  • Fixed switch syntax error flagged by cppcheck.
  • Added .editorconfig.
  • Removed superfluous macro conditions.
  • Improved API documentation formatting.
  • Improved README, license file, copyright notices, and changelog format.

5.1.0 (2021-09-22)

  • Added let&-operator for implicit closing of an opened database.

    Thanks to Yawar Amin yawar.amin@gmail.com for this contribution!

5.0.3 (2021-03-18)

  • Fixed missing GC registration of init values in aggregate functions.
  • Fixed call to final aggregate function when no step function was called.
  • Fixed incorrect required minimum OCaml version (now 4.12).

5.0.2 (2020-07-30)

  • Added missing dune-configurator dependency.
  • Removed redundant build dependencies.
  • Use caml_alloc_initialized_string wherever possible.
  • Fixed documentation typos and wording.
  • Added support for const char strings in stubs due to stricter handling in newer OCaml runtimes. This eliminates C-compiler warnings.

5.0.1 (2019-12-01)

  • Added missing :with-test declaration in Dune project file.
  • Improved portability to older SQLite3 versions.

5.0.0 (2019-12-01)

  • Breaking change:

    • Data.to_string is now Data.to_string_coerce to more clearly reflect that non-string data will be converted to strings.
  • Added support for SQLite3 window functions.
  • Added Sqlite3.Rc.check and Sqlite3.Rc.is_success for easier return code checking.
  • Added Sqlite3.prepare_or_reset for reusing prepared statements in loops.
  • Added Sqlite3.iter and Sqlite3.fold for more convenient handling of row data.
  • Added more data conversion functions, also for direct access to column data.
  • Added more data binding functions.
  • Improved closing behavior of database using new SQLite3 API.
  • Improved testing framework using ppx_inline_test.
  • Each test case now has its own database for parallel testing.
  • Switched from caml_alloc_custom to caml_alloc_custom_mem.
  • Switched to OPAM file generation via dune-project.
  • Improved compatibility with older OCaml versions. Thanks to Simon Cruanes for this patch!

Thanks to Shawn shawnw.mobile@gmail.com and Ted Spence tspence@fb.com for their work on many of these contributions!

4.4.1 (2018-10-25)

  • Switched to dune, dune-release, and OPAM 2.0

4.4.0 (2018-04-26)

  • Support for new open flags:

    • uri - for URI filename interpretation
    • memory - for in-memory databases

    Thanks to Raman Varabets for this contribution!

  • Fixed warnings and errors in configuration code due to upstream changes.

4.3.2 (2017-11-27)

  • Added missing -lpthread linking flag to avoid problems with projects that do not link with the OCaml threads library.

4.3.1 (2017-11-22)

  • Improved finalization of databases and statements for better performance

4.3.0 (2017-10-10)

  • Improved compatibility with MSVC
  • Used untagging and unboxing attributes on external functions

4.2.0 (2017-08-03)

  • Switched to jbuilder and topkg
  • Added backup functionality

    Thanks to Markus W. Weissmann markus.weissmann@in.tum.de for this contribution!

OCaml

Innovation. Community. Security.