package freetds

Not available on OCaml 5.5
  1. Overview
  2. Docs

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

Added to opam-repository:

README

Build status Build status

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 (4)

  1. ocaml >= "4.06.0" & < "5.0.0"
  2. cppo build
  3. dune-configurator
  4. dune >= "1.4.0"

Dev Dependencies (1)

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

Optional Dependencies

None

Used by (1)

  1. mssql

Conflicts

None

Build status

Results of building freetds with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.7 (this version) good good n/a n/a n/a
0.5.1 good good bad bad bad
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure