PHP Class ManaPHP\Db\Adapter\Mysql

Inheritance: extends ManaPHP\Db
Afficher le fichier Open project: manaphp/manaphp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

escapeIdentifier() public méthode

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
Résultat string

getMetadata() public méthode

public getMetadata ( string $source ) : array
$source string
Résultat array

truncateTable() public méthode

public truncateTable ( string $source ) : static
$source string
Résultat static