PHP Class ManaPHP\Db\Adapter\Mysql

Inheritance: extends ManaPHP\Db
Exibir arquivo Open project: manaphp/manaphp Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

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

escapeIdentifier() public method

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
return string

getMetadata() public method

public getMetadata ( string $source ) : array
$source string
return array

truncateTable() public method

public truncateTable ( string $source ) : static
$source string
return static