An open API service indexing awesome lists of open source software.

https://github.com/qoretechnologies/module-sybase

Qore FreeTDS (MSSQL and Sybase) database driver module
https://github.com/qoretechnologies/module-sybase

database freetds mssql qore sybase

Last synced: 5 months ago
JSON representation

Qore FreeTDS (MSSQL and Sybase) database driver module

Awesome Lists containing this project

README

          

sybase and freetds modules for Qore
version 1.3 by David Nichols

Requires qore 0.9+ 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 scripts:
test/sybase-types.qtest - Data type handling tests
test/sybase-statement.qtest - SQLStatement API tests
test/sybase-direct-connect.qtest - Direct connection (hostname:port) tests
test/sybase-connection-errors.qtest - Connection error handling tests
test/sybase-options.qtest - Driver options (number handling, timezone)
test/sybase-null-and-parsing.qtest - NULL handling and SQL parsing tests
test/sybase-stored-procedures.qtest - Stored procedure tests
test/sybase-lob.qtest - Large object (TEXT, IMAGE, etc.) tests
test/sybase-multiple-resultsets.qtest - Multiple result set tests
test/sybase-reconnection.qtest - Connection lifecycle tests

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 GIT
--------------

./reconf.sh
./configure
make
sudo make install