PHP 클래스 Prado\Data\Common\TDbMetaData

Use the {@link getTableInfo} method to retrieve a table information.
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$delimiterIdentifier array

공개 메소드들

메소드 설명
__construct ( $conn )
createCommandBuilder ( $tableName = null ) : TDbCommandBuilder Creates a command builder for a given table name.
findTableNames ( string $schema = '' ) : array Returns all table names in the database.
getDbConnection ( ) : TDbConnection
getInstance ( $conn ) : TDbMetaData Obtain database specific TDbMetaData class using the driver name of the database connection.
getTableInfo ( $tableName = null ) : TDbTableInfo Obtains table meta data information for the current connection and given table name.
quoteColumnAlias ( string $name ) : string Quotes a column alias for use in a query.
quoteColumnName ( string $name ) : string Quotes a column name for use in a query.
quoteTableName ( string $name ) : string Quotes a table name for use in a query.

보호된 메소드들

메소드 설명
createTableInfo ( $tableName ) : TDbTableInfo This method should be implemented by decendent classes.
getTableInfoClass ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( $conn )

createCommandBuilder() 공개 메소드

Creates a command builder for a given table name.
public createCommandBuilder ( $tableName = null ) : TDbCommandBuilder
리턴 TDbCommandBuilder command builder instance for the given table.

createTableInfo() 추상적인 보호된 메소드

This method should be implemented by decendent classes.
abstract protected createTableInfo ( $tableName ) : TDbTableInfo
리턴 TDbTableInfo driver dependent create builder.

findTableNames() 추상적인 공개 메소드

This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception.
abstract public findTableNames ( string $schema = '' ) : array
$schema string the schema of the tables. Defaults to empty string, meaning the current or default schema. If not empty, the returned table names will be prefixed with the schema name.
리턴 array all table names in the database.

getDbConnection() 공개 메소드

public getDbConnection ( ) : TDbConnection
리턴 TDbConnection database connection.

getInstance() 공개 정적인 메소드

Obtain database specific TDbMetaData class using the driver name of the database connection.
public static getInstance ( $conn ) : TDbMetaData
리턴 TDbMetaData database specific TDbMetaData.

getTableInfo() 공개 메소드

Obtains table meta data information for the current connection and given table name.
public getTableInfo ( $tableName = null ) : TDbTableInfo
리턴 TDbTableInfo table information.

getTableInfoClass() 보호된 메소드

protected getTableInfoClass ( ) : string
리턴 string TDbTableInfo class name.

quoteColumnAlias() 공개 메소드

Quotes a column alias for use in a query.
public quoteColumnAlias ( string $name ) : string
$name string column alias
리턴 string the properly quoted column alias

quoteColumnName() 공개 메소드

Quotes a column name for use in a query.
public quoteColumnName ( string $name ) : string
$name string column name
리턴 string the properly quoted column name

quoteTableName() 공개 메소드

Quotes a table name for use in a query.
public quoteTableName ( string $name ) : string
$name string table name
리턴 string the properly quoted table name

프로퍼티 상세

$delimiterIdentifier 보호되어 있는 정적으로 프로퍼티

protected static array $delimiterIdentifier
리턴 array