Taxi::Mysql::Connection - extendable full-text index using mysql: database connection


NAME

Taxi::Mysql::Connection - extendable full-text index using mysql: database connection (abstract base class)

(Back to Top)


SYNOPSIS

 ##========================================================================
 ## PRELIMINARIES
 use Taxi::Mysql::Connection;
 ##========================================================================
 ## Constructors etc.
 $ix = $CLASS_OR_OBJ->new(%args);
 ##========================================================================
 ## SQL utilities
 $handle = $con->getHandle();
 undef = $con->closeHandle();
 undef = $con->dropHandle();

(Back to Top)


DESCRIPTION

Globals

Variable: @ISA

Taxi::Mysql::Connection inherits from Taxi::Mysql::Base.

Constructors etc.

new
 $ix = $CLASS_OR_OBJ->new(%args);

Object structure / recognized %args:

   {
    ##-- SQL connection information
    handleArgs => \%handleArgs,       ##-- passed to Taxi::Mysql::Handle->new()
    dbCharset=>'binary',              ##-- I/O charset (mysql alias)
    ##-- verbosity behavior
    verbose => $vlevel,               ##-- see Taxi::Mysql::Base
    ##-- Low-level data
    handle=>$sql_handle,              ##-- actual db handle
   }

SQL utilities

getHandle
 $handle = $con->getHandle();

Gets open database handle, connecting if necessary. Reads/sets $con->{handle}.

closeHandle
 undef = $con->closeHandle();

Disconnects handle if currently connected.

dropHandle
 undef = $con->dropHandle();

Disconnects and deletes backend handle.

execSQL
 ($sth,$rv) = $con->execSQL($sql) ##-- array context
 $sth       = $con->execSQL($sql) ##-- scalar context

Execute some SQL code. In scalar context, returns in statement handle. In list context, also returns DBI $rv for $sth->execute().

(Back to Top)


ACKNOWLEDGEMENTS

Perl by Larry Wall.

(Back to Top)


AUTHOR

Bryan Jurish <moocow@ling.uni-potsdam.de>

(Back to Top)


COPYRIGHT AND LICENSE

Copyright (C) 2006 by Bryan Jurish

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.

(Back to Top)


SEE ALSO

perl(1), Taxi::Mysql(3perl), Taxi::Mysql::Handle(3perl).

(Back to Top)

 Taxi::Mysql::Connection - extendable full-text index using mysql: database connection