Свойство | Тип | Описание | |
---|---|---|---|
$metaDataClassMap | |||
$pdo | PDO | The PDO connection used to retreive database meta data | |
$schema | string | The default schema name for the meta data object. | |
$schemaObjectQuoteChar | The character used to quote schema objects. | ||
$truncateCommand | The command used to perform a TRUNCATE operation. |
Метод | Описание | |
---|---|---|
__construct ( PDO $pdo, string $schema = '' ) | Creates a new database meta data object using the given pdo connection and schema name. | |
allowsCascading ( ) : boolean | Returns true if the rdbms allows cascading | |
createMetaData ( PDO $pdo, string $schema = '' ) : PHPUnit_Extensions_Database_DB_MetaData | Creates a meta data object based on the driver of given $pdo object and $schema name. | |
getSchema ( ) : string | Returns the schema for the connection. | |
getTruncateCommand ( ) : string | Returns the command for the database to truncate a table. | |
quoteSchemaObject ( string $object ) : string | Returns a quoted schema object. (table name, column name, etc) | |
registerClassWithDriver ( string $className, string $pdoDriver ) : ReflectionClass | Validates and registers the given $className with the given $pdoDriver. | |
splitTableName ( string $fullTableName ) : array | Seperates the schema and the table from a fully qualified table name. |
final public __construct ( PDO $pdo, string $schema = '' ) | ||
$pdo | PDO | |
$schema | string |
public allowsCascading ( ) : boolean | ||
Результат | boolean |
public static createMetaData ( PDO $pdo, string $schema = '' ) : PHPUnit_Extensions_Database_DB_MetaData | ||
$pdo | PDO | |
$schema | string | |
Результат | PHPUnit_Extensions_Database_DB_MetaData |
public getTruncateCommand ( ) : string | ||
Результат | string |
public quoteSchemaObject ( string $object ) : string | ||
$object | string | |
Результат | string |
public static registerClassWithDriver ( string $className, string $pdoDriver ) : ReflectionClass | ||
$className | string | |
$pdoDriver | string | |
Результат | ReflectionClass |
public splitTableName ( string $fullTableName ) : array | ||
$fullTableName | string | |
Результат | array |
protected PDO $pdo | ||
Результат | PDO |
protected string $schema | ||
Результат | string |
protected $schemaObjectQuoteChar |