package freetds
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.
README
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 withocamldbi
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:
make
This will build ocaml-freetds. This requires FreeTDS development packages to be installed, see thedepexts
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.
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page