package freetds

  1. Overview
  2. Docs
Binding to the FreeTDS library

Install

Dune Dependency

Authors

Maintainers

Sources

freetds-0.5.2.tbz
sha256=7b22d6eaf1d844fdd35481b6d77dd380f497d4af45b340119f58c3bb37ce4676
md5=061df4b808d84f40ae3e2a344e091406

Description

FreeTDS is a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases.

Tags

clib:ct clib:sybdb

Published: 18 Apr 2018

README

Build status"

OCaml FreeTDS Binding

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.

Feature Summary

  • Direct binding to the ct-lib interface
  • Supports Dbi_freetds module included with ocamldbi

See the online documentation.

Known Bugs And Limitations

  • Some data types, such as datetimes, are returned as strings, because I haven't had time to write a good binding for them yet.
  • It would be nice to bind the dblib interface as well, and maybe even have the DBI module be able to use either, because I understand they have slightly different features

Installation

The easier way is to use opam:

opam install freetds

Quick Version:

$ tar xjvf ocaml-freetds-<version>.tar.bz2
$ cd ocaml-freetds-<version>
$ make
$ make install

Long Version:

  1. make This will build ocaml-freetds. This requires FreeTDS development packages to be installed, see the depexts section in freetds.opam.
  2. 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.

Special OSX Instructions

This seems to be the easiest way to get ready on OSX:

brew install ocaml
brew install opam
opam install jbuilder

Examples

In the examples subdirectory is a simple SQL dispatcher script written against the Ct module, and also one for the Dbi_freetds module.

Contributors

License

ocaml-freetds is distributed under the terms of the GNU Lesser Public License, version 2.1 See the file COPYING.LIB for details

Dependencies (2)

  1. jbuilder >= "1.0+beta19.1"
  2. ocaml >= "4.02.3"

Dev Dependencies (1)

  1. ounit with-test & >= "2.0.0"

Used by (1)

  1. mssql < "2.0.3"

Conflicts

None

OCaml

Innovation. Community. Security.