Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Test_PHPUnit_Db_Connection Class Reference

Public Member Functions

 __construct (Zend_Db_Adapter_Abstract $db, $schema)
 Construct Connection based on Zend_Db_Adapter_Abstract.
 
 close ()
 Close this connection.
 
 createQueryTable ($resultName, $sql)
 Creates a table with the result of the specified SQL statement.
 
 getConnection ()
 Returns a Zend_Db Connection.
 
 getMetaData ()
 Returns a database metadata object that can be used to retrieve table meta data from the database.
 
 getSchema ()
 Returns the schema for the connection.
 
 getTruncateCommand ()
 Returns the command used to truncate a table.
 

Protected Attributes

 $_connection
 
 $_schema
 
 $_metaData
 Metadata.
 

Constructor & Destructor Documentation

__construct ( Zend_Db_Adapter_Abstract  $db,
  $schema 
)

Construct Connection based on Zend_Db_Adapter_Abstract.

Parameters
Zend_Db_Adapter_Abstract$db
string$schema

Member Function Documentation

close ( )

Close this connection.

Returns
void
createQueryTable (   $resultName,
  $sql 
)

Creates a table with the result of the specified SQL statement.

Parameters
string$resultName
string$sql
Returns
PHPUnit_Extensions_Database_DataSet_ITable
getConnection ( )

Returns a Zend_Db Connection.

Returns
Zend_Db_Adapter_Abstract
getMetaData ( )

Returns a database metadata object that can be used to retrieve table meta data from the database.

Returns
PHPUnit_Extensions_Database_DB_IMetaData
getSchema ( )

Returns the schema for the connection.

Returns
string
getTruncateCommand ( )

Returns the command used to truncate a table.

Returns
string

Member Data Documentation

$_connection
protected
$_metaData
protected

Metadata.

Parameters
PHPUnit_Extensions_Database_DB_IMetaData$db
$_schema
protected