package freetds

  1. Overview
  2. Docs
Binding to the FreeTDS library

Install

Dune Dependency

Authors

Maintainers

Sources

freetds-0.6.tbz
sha256=2ad65deb2a0d7b1322b265591f0e81586eae99e14a5801af9075cf71bf52ffe5
md5=50222ca934a1f6a8989d3e5b1a6ad583

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: 30 May 2018

README

README.md

OCaml FreeTDS Binding

OCaml FreeTDS is a binding to portions of the db-lib and ct-lib of the FreeTDS library, for interfacing with Sybase and Microsoft SQL databases.

See the online documentation.

Installation

Before installing the bindings, you must have the development package of FreeTDS on your system. See freetds.opam to know what (system) package to install.

The simplest way of installing this library is to use opam:

opam install freetds

If you cloned this repository, issue make to compile. To install: make install.

To run the tests, you must first set the environment variables MSSQL_TEST_USER, MSSQL_TEST_PASSWORD, MSSQL_TEST_SERVER and MSSQL_TEST_DATABASE and, if necessary, TDSVER (see appveyor.yml for example values). Then type make test.

Examples

In the examples subdirectory is a simple SQL dispatcher script written against the Dblib and the Ct modules.

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.

Contributors

License

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

Dependencies (6)

  1. configurator build
  2. stdio build
  3. base build
  4. cppo build
  5. jbuilder >= "1.0+beta19.1"
  6. 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.