creole.drivers.mysql
[ class tree: creole.drivers.mysql ] [ index: creole.drivers.mysql ] [ all elements ]

Class: MySQLConnection

Source Location: /creole/drivers/mysql/MySQLConnection.php

Class Overview

ConnectionCommon
   |
   --MySQLConnection

MySQL implementation of Connection.


Author(s):

Version:

  • $Revision: 1.17 $

Methods


Inherited Variables

Inherited Methods

Class: ConnectionCommon

ConnectionCommon::getAutoCommit()
Get auto-commit status.
ConnectionCommon::getDSN()
ConnectionCommon::getFlags()
ConnectionCommon::getResource()
ConnectionCommon::prepareCall()
Creates a CallableStatement object for calling database stored procedures.
ConnectionCommon::setAutoCommit()
Enable/disable automatic commits.
ConnectionCommon::__sleep()
This "magic" method is invoked upon serialize() and works in tandem with the __wakeup() method to ensure that your database connection is serializable.
ConnectionCommon::__wakeup()
This "magic" method is invoked upon unserialize().

Class Details

[line 36]
MySQL implementation of Connection.



Tags:

version:  $Revision: 1.17 $
author:  Hans Lellelid <hans@xmpl.org>
author:  Stig Bakken <ssb@fast.no>
author:  Lukas Smith


[ Top ]


Class Methods


method applyLimit [line 175]

void applyLimit( mixed &$sql, mixed $offset, mixed $limit)



Tags:

access:  public
see:  Connection::applyLimit()


[ Top ]

method close [line 165]

void close( )



Tags:

see:  Connection::disconnect()


[ Top ]

method commit [line 236]

void commit( )

Commit the current transaction.



[ Top ]

method connect [line 50]

void connect( $dsn $dsninfo, [$flags $flags = 0])

Connect to a database and log in as the specified user.



Tags:

throws:  SQLException
access:  public


Parameters:

$dsn   $dsninfo   the data source name (see DB::parseDSN for syntax)
$flags   $flags   Any conneciton flags.

[ Top ]

method createStatement [line 156]

void createStatement( )



Tags:

access:  public
see:  Connection::createStatement()


[ Top ]

method executeQuery [line 187]

void executeQuery( mixed $sql, [mixed $fetchmode = null])



Tags:



[ Top ]

method executeUpdate [line 205]

void executeUpdate( mixed $sql)



Tags:



[ Top ]

method getDatabaseInfo [line 122]

void getDatabaseInfo( )



Tags:

access:  public
see:  Connection::getDatabaseInfo()


[ Top ]

method getIdGenerator [line 131]

void getIdGenerator( )



Tags:

access:  public
see:  Connection::getIdGenerator()


[ Top ]

method getUpdateCount [line 281]

int getUpdateCount( )

Gets the number of rows affected by the data manipulation query.



Tags:

return:  Number of rows affected by the last query.


[ Top ]

method prepareCall [line 149]

void prepareCall( mixed $sql)



Tags:

access:  public
see:  Connection::prepareCall()


Overrides ConnectionCommon::prepareCall() (Creates a CallableStatement object for calling database stored procedures.)

[ Top ]

method prepareStatement [line 140]

void prepareStatement( mixed $sql)



Tags:

access:  public
see:  Connection::prepareStatement()


[ Top ]

method rollback [line 258]

void rollback( )

Roll back (undo) the current transaction.



Tags:

throws:  SQLException


[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:51:46 -0400 by phpDocumentor 1.3.0RC3