Mark A. Downing > Apache-Sybase-CTlib-1.02 > Apache::Sybase::CTlib

Download:
Apache-Sybase-CTlib-1.02.tar.gz

Dependencies

Annotate this POD

Related Modules

DBD::Sybase
Sybase::CTlib
CGI::Carp
more...
By perlmonks.org

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.02   Source  

NAME ^

Apache::Sybase::CTlib - Perl extension for creating persistant database connections to sybase using Apache and Sybperl.

SYNOPSIS ^

use Apache::Sybase::CTlib;

Apache::Sybase::CTlib->connect_on_init("user", "password", "server", "db");

DESCRIPTION ^

This module allows Apache/Modperl/Sybperl users to connect to sybase data servers, and maintain persistant connections. The advantage should be clear, as this avoids the overhead of creating a connection, gathering data, and then destroying the connection with every query.

Place the above commands in your startup file for apache:

In httpd.conf

PerlRequire /apache/startup.pl

In /apache/startup.pl

use Apache::Sybase::CTlib;

Apache::Sybase::CTlib->connect_on_init("user", "password", "server", "db");

Passing db (database name) to the module will allow you to specify a database to start in (the module will execute "use database" after the connection is established). This is an optional parameter.

AUTHOR ^

Mark A. Downing, mdowning@rdatasys.com http://www.wm7d.net/

SEE ALSO ^

perl(1).

syntax highlighting: