PHP 클래스 ManaPHP\Db\Adapter\Mysql

상속: extends ManaPHP\Db
파일 보기 프로젝트 열기: manaphp/manaphp 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array | Mysql $options ) \ManaPHP\Db\Adapter constructor
escapeIdentifier ( string $identifier ) : string Escapes a column/table/schema name echo $connection->escapeIdentifier('my_table'); // my_table echo $connection->escapeIdentifier('companies.name'); // companies.name
getMetadata ( string $source ) : array
truncateTable ( string $source ) : static

메소드 상세

__construct() 공개 메소드

\ManaPHP\Db\Adapter constructor
public __construct ( array | Mysql $options )
$options array | ConfManaPHP\Db\Adapter\Mysql

escapeIdentifier() 공개 메소드

Escapes a column/table/schema name echo $connection->escapeIdentifier('my_table'); // my_table echo $connection->escapeIdentifier('companies.name'); // companies.name
public escapeIdentifier ( string $identifier ) : string
$identifier string
리턴 string

getMetadata() 공개 메소드

public getMetadata ( string $source ) : array
$source string
리턴 array

truncateTable() 공개 메소드

public truncateTable ( string $source ) : static
$source string
리턴 static