Skip to content

2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@brendanlong brendanlong released this 06 May 18:53
· 18 commits to master since this release

Added

  • Streaming execute_ helpers: execute_map, execute_iter, execute_fold, and execute_pipe.
  • Param.Array now supports lists, which is useful for IN ($1) clauses.

Changed

  • Make connect's port argument optional
  • Support Core v0.13
  • Result sets that don't contain row data aren't returned. For example, INSERT ...; SELECT ... now returns one result set instead of two.

Fixed

  • Correctly use port when provided
  • Various upstream fixes in ocaml-freetds
    • Exceptions shouldn't break the connection handle
    • Runtime lock released during queries
  • Logging always occurs in an Async context
  • Logging occurs in the same Async context as the caller and not a random one
  • Remove dependency on Async_extra

Removed

  • Mssql.Test. This module was for testing and shouldn't have been part of the public API. We recommend adding a module like this to your own code if you want it.
  • Semi-broken connection pool (Mssql.Pool) removed. Doing this safely requires setting the
    RESETCONNECTION bit, which doesn't seem to be possible in FreeTDS.