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

Class: PgSQLConnection

Source Location: /creole/drivers/pgsql/PgSQLConnection.php

Class Overview

ConnectionCommon
   |
   --PgSQLConnection

PgSQL implementation of Connection.


Author(s):

Version:

  • $Revision: 1.16 $

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 35]
PgSQL implementation of Connection.



Tags:

version:  $Revision: 1.16 $
author:  Hans Lellelid <hans@xmpl.org> (Creole)
author:  Stig Bakken <ssb@fast.no> (PEAR::DB)
author:  Lukas Smith (PEAR::MDB)


[ Top ]


Class Methods


method applyLimit [line 110]

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



Tags:

access:  public
see:  Connection::applyLimit()


[ Top ]

method close [line 123]

void close( )



Tags:

see:  Connection::disconnect()


[ Top ]

method commit [line 168]

void commit( )

Commit the current transaction.



[ Top ]

method connect [line 53]

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

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



Tags:

throws:  SQLException
access:  public


Parameters:

array   $dsn   The datasource hash.
$flags   $flags   Any connection flags.

[ Top ]

method createStatement [line 244]

void createStatement( )



Tags:

access:  public
see:  Connection::createStatement()


[ Top ]

method executeQuery [line 133]

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



Tags:

see:  Connection::simpleQuery()


[ Top ]

method executeUpdate [line 145]

void executeUpdate( mixed $sql)



Tags:

see:  Connection::simpleUpdate()


[ Top ]

method getDatabaseInfo [line 210]

void getDatabaseInfo( )



Tags:

access:  public
see:  Connection::getDatabaseInfo()


[ Top ]

method getIdGenerator [line 219]

void getIdGenerator( )



Tags:

access:  public
see:  Connection::getIdGenerator()


[ Top ]

method getUpdateCount [line 201]

int getUpdateCount( )

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



Tags:

return:  Number of rows affected by the last query.
see:  Statement::getUpdateCount()


[ Top ]

method prepareCall [line 237]

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 228]

void prepareStatement( mixed $sql)



Tags:

access:  public
see:  Connection::prepareStatement()


[ Top ]

method rollback [line 184]

void rollback( )

Roll back (undo) the current transaction.



Tags:

throws:  SQLException


[ Top ]


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