Interface Driver
Connection driver interface.
Methods summary
public
quote_string( string|array $string
)
: string|array
Quotes a string, or an array of strings.
Quotes a string, or an array of strings.
Parameters
Returns
string|array
public
quote_identifier( string|array $identifier
)
: string|array
Quotes an identifier, or an array of identifiers.
Quotes an identifier, or an array of identifiers.
Parameters
Returns
string|array
public
cast_value( mixed $value
, string|null $type
= null )
: mixed
Casts a value into a database compatible representation.
Casts a value into a database compatible representation.
Parameters
$value
$type
- One of
SchemaColumn::TYPE_*
.
Returns
mixed
public
table_exists( string $unprefixed_name
)
: boolean
Checks if a specified table exists in the database.
Checks if a specified table exists in the database.
Parameters
$unprefixed_name
- The unprefixed name of the table.
Returns
boolean
true
if the table exists, false
otherwise.
public
optimize( void )
Optimizes the tables of the database.
Optimizes the tables of the database.