Skip to content

qorelanguage/module-sybase

Repository files navigation

sybase and freetds modules for Qore
version 1.0.4 by David Nichols

Requires qore 0.7.1+ and either or both of:
1) Sybase headers and libraries to build the "sybase" module
2) freetds headers and libraries to build the "freetds" module (formerly called "mssql")

The "sybase" and "freetds" DBI drivers are built from the same source code.  They support all Qore DBI features including stored procedure execution and binding by value
*) transaction management is supported
*) automatic transparent character set conversion is supported when necessary
*) threading support
*) stored procedure support with direct binding and retrieving values
*) these drivers also support executing multiple queries within a single command and returning all results in a special format, see the documentation for more information

"sybase" module: Sybase DBI module requires SAP (Sybase) OCS 15+ client libraries and headers (not tested with earlier versions, however it should work)
Use --with-sybase or set the SYBASE and SYBASE_OCS environment variables to build the "sybase" module.

"freetds" module: FreeTDS-based Sybase and Microsoft SQL Server driver, requires FreeTDS headers and libraries
User --with-freetds or set the FREETDS environment variable to your FreeTDS installation to build.  Note that the "freetds" driver is built from the same source as the "sybase" driver and can be used to connect to sybase and MS SQL Server databases
FreeTDS website: http://www.freetds.org

Documentation in docs/sybase-module-doc.html

test/example script: test/db-test.q


LICENSE
-------
The source code is released under the LGPL 2.1 and MIT licenses; either license
may be used at the user's discretion.  Note that both licenses are treated
equally by the Qore library in the sense that both licenses allow the module
to be loaded without restrictions by the Qore library (even when the Qore
library is initialized in GPL mode).
See COPYING.MIT and COPYING.LGPL for details on the open-source licenses.


BUILD AND INSTALL
-----------------

configure
make
sudo make install

The configure script will find out where your qore module directory is found and set this for the install directory.


BUILD FROM SVN
--------------

reconf.sh
configure
make
sudo make install