Taxi::Mysql::Connection - extendable full-text index using mysql: database connection |
Taxi::Mysql::Connection - extendable full-text index using mysql: database connection (abstract base class)
##======================================================================== ## PRELIMINARIES
use Taxi::Mysql::Connection;
##======================================================================== ## Constructors etc.
$ix = $CLASS_OR_OBJ->new(%args);
##======================================================================== ## SQL utilities
$handle = $con->getHandle(); undef = $con->closeHandle(); undef = $con->dropHandle();
Taxi::Mysql::Connection inherits from Taxi::Mysql::Base.
$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 }
$handle = $con->getHandle();
Gets open database handle, connecting if necessary. Reads/sets $con->{handle}.
undef = $con->closeHandle();
Disconnects handle if currently connected.
undef = $con->dropHandle();
Disconnects and deletes backend handle.
($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().
Perl by Larry Wall.
Bryan Jurish <moocow@ling.uni-potsdam.de>
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.
perl(1), Taxi::Mysql(3perl), Taxi::Mysql::Handle(3perl).
Taxi::Mysql::Connection - extendable full-text index using mysql: database connection |