https://github.com/kennknowles/ocaml-freetds
An OCaml binding to the ct-lib portion of the freetds library, for interfacing with Sybase and Microsoft SQL databases.
ct-lib interfaceDbi_freetds module included with ocamldbiSee the online documentation.
The easier way is to use opam:
opam install freetdsQuick Version:
$ tar xjvf ocaml-freetds-<version>.tar.bz2
$ cd ocaml-freetds-<version>
$ make
$ make installLong Version:
make This will build ocaml-freetds. This requires FreeTDS development packages to be installed, see the depexts section in freetds.opam.make install You may need to run this as root, or someone with permissions to the findlib's destdir. This should install ocaml-freetds as a findlib package, so you can use 'ocamlfind' to build things with it.This seems to be the easiest way to get ready on OSX:
brew install ocaml
brew install opam
opam install jbuilderIn the examples subdirectory is a simple SQL dispatcher script written against the Ct module, and also one for the Dbi_freetds module.
ocaml-freetds is distributed under the terms of the GNU Lesser Public License, version 2.1 See the file COPYING.LIB for details