MySQLConnection Class Reference

Inherits ConnectionCommon, and Connection.

List of all members.

Public Member Functions


Member Function Documentation

void MySQLConnection::connect ( $dsninfo, $flags = 0 )

 

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

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

Exceptions
SQLException 

Returns void

Implements Connection.

MySQLConnection::getDatabaseInfo ( )

 

See also Connection::getDatabaseInfo()

Implements Connection.

MySQLConnection::getIdGenerator ( )

 

See also Connection::getIdGenerator()

Implements Connection.

MySQLConnection::prepareStatement ( $sql )

 

See also Connection::prepareStatement()

Implements Connection.

MySQLConnection::prepareCall ( $sql )

 

See also Connection::prepareCall()

Reimplemented from ConnectionCommon.

MySQLConnection::createStatement ( )

 

See also Connection::createStatement()

Implements Connection.

MySQLConnection::close ( )

 

See also Connection::disconnect()

Implements Connection.

MySQLConnection::executeQuery ( $sql, $fetchmode = null )

 

See also Connection::executeQuery()

Implements Connection.

MySQLConnection::executeUpdate ( $sql )

 

See also Connection::executeUpdate()

Implements Connection.

MySQLConnection::commit ( )

 

Commit the current transaction.

Implements Connection.

void MySQLConnection::rollback ( )

 

Roll back (undo) the current transaction.
Exceptions
SQLException 

Returns void

Implements Connection.

int MySQLConnection::getUpdateCount ( )

 

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

Returns int Number of rows affected by the last query.

Implements Connection.


This file is part of the Creole[php5] library.


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS