PHP Интерфейс PHPUnit_Extensions_Database_DB_IDatabaseConnection, qcodo

Автор: Mike Lively ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
allowsCascading ( ) : boolean Returns true if the connection allows cascading
close ( ) Close this connection.
createDataSet ( array $tableNames = NULL ) : PHPUnit_Extensions_Database_DataSet_IDataSet Creates a dataset containing the specified table names. If no table names are specified then it will created a dataset over the entire database.
createQueryTable ( string $resultName, string $sql ) : PHPUnit_Extensions_Database_DataSet_ITable Creates a table with the result of the specified SQL statement.
getConnection ( ) : PDO Returns a PDO Connection
getMetaData ( ) : PHPUnit_Extensions_Database_DB_IMetaData Returns a database metadata object that can be used to retrieve table meta data from the database.
getRowCount ( string $tableName, string $whereClause = NULL ) Returns the number of rows in the given table. You can specify an optional where clause to return a subset of the table.
getSchema ( ) : string Returns the schema for the connection.
getTruncateCommand ( ) : string Returns the command used to truncate a table.
quoteSchemaObject ( string $object ) : string Returns a quoted schema object. (table name, column name, etc)

Описание методов

allowsCascading() публичный Метод

Returns true if the connection allows cascading
public allowsCascading ( ) : boolean
Результат boolean

close() публичный Метод

Close this connection.
public close ( )

createDataSet() публичный Метод

Creates a dataset containing the specified table names. If no table names are specified then it will created a dataset over the entire database.
public createDataSet ( array $tableNames = NULL ) : PHPUnit_Extensions_Database_DataSet_IDataSet
$tableNames array
Результат PHPUnit_Extensions_Database_DataSet_IDataSet

createQueryTable() публичный Метод

Creates a table with the result of the specified SQL statement.
public createQueryTable ( string $resultName, string $sql ) : PHPUnit_Extensions_Database_DataSet_ITable
$resultName string
$sql string
Результат PHPUnit_Extensions_Database_DataSet_ITable

getConnection() публичный Метод

Returns a PDO Connection
public getConnection ( ) : PDO
Результат PDO

getMetaData() публичный Метод

Returns a database metadata object that can be used to retrieve table meta data from the database.
public getMetaData ( ) : PHPUnit_Extensions_Database_DB_IMetaData
Результат PHPUnit_Extensions_Database_DB_IMetaData

getRowCount() публичный Метод

Returns the number of rows in the given table. You can specify an optional where clause to return a subset of the table.
public getRowCount ( string $tableName, string $whereClause = NULL )
$tableName string
$whereClause string

getSchema() публичный Метод

Returns the schema for the connection.
public getSchema ( ) : string
Результат string

getTruncateCommand() публичный Метод

Returns the command used to truncate a table.
public getTruncateCommand ( ) : string
Результат string

quoteSchemaObject() публичный Метод

Returns a quoted schema object. (table name, column name, etc)
public quoteSchemaObject ( string $object ) : string
$object string
Результат string