PHP Class ManaPHP\Db\Adapter\Sqlite

Inheritance: extends ManaPHP\Db
Mostrar archivo Open project: manaphp/manaphp

Public Methods

Method Description
__construct ( string | array $options ) Sqlite 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

Sqlite constructor.
public __construct ( string | array $options )
$options string | array

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