PHP Interface PHPUnit_Extensions_Database_DB_IMetaData, qcodo

Author: Mike Lively ([email protected])
Show file Open project: qcodo/qcodo Interface Usage Examples

Public Methods

Method Description
allowsCascading ( ) : boolean Returns true if the rdbms allows cascading
getSchema ( ) : string Returns the name of the default schema.
getTableColumns ( string $tableName ) : array Returns an array containing the names of all the columns in the $tableName table,
getTableNames ( ) : array Returns an array containing the names of all the tables in the database.
getTablePrimaryKeys ( string $tableName ) : array Returns an array containing the names of all the primary key columns in the $tableName table.
quoteSchemaObject ( string $object ) : string Returns a quoted schema object. (table name, column name, etc)

Method Details

allowsCascading() public method

Returns true if the rdbms allows cascading
public allowsCascading ( ) : boolean
return boolean

getSchema() public method

Returns the name of the default schema.
public getSchema ( ) : string
return string

getTableColumns() public method

Returns an array containing the names of all the columns in the $tableName table,
public getTableColumns ( string $tableName ) : array
$tableName string
return array

getTableNames() public method

Returns an array containing the names of all the tables in the database.
public getTableNames ( ) : array
return array

getTablePrimaryKeys() public method

Returns an array containing the names of all the primary key columns in the $tableName table.
public getTablePrimaryKeys ( string $tableName ) : array
$tableName string
return array

quoteSchemaObject() public method

Returns a quoted schema object. (table name, column name, etc)
public quoteSchemaObject ( string $object ) : string
$object string
return string