Class BasicDriver
-
ICanBoogie\ActiveRecord\Driver\BasicDriver
implements
ICanBoogie\ActiveRecord\Driver
uses
ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
__construct( callable $connection_provider
)
Parameters
$connection_provider
- A callable that provides a database connection.
public
quote_string( string|array $string
)
: string|array
Parameters
Returns
string|array
Inheritdoc
Implementation of
public
quote_identifier( string|array $identifier
)
: string|array
Parameters
Returns
string|array
Inheritdoc
Implementation of
public
cast_value( mixed $value
, string|null $type
= null )
: mixed
Parameters
$value
$type
- One of
SchemaColumn::TYPE_*
.
Returns
mixed
Inheritdoc
Implementation of
protected
resolve_table_name( string $unprefixed_table_name
)
: string
Returns table name, including possible prefix.
Returns table name, including possible prefix.
Parameters
Returns
string
protected
resolve_quoted_table_name( string $unprefixed_table_name
)
: string
Returns quoted table name, including possible prefix.
Returns quoted table name, including possible prefix.
Parameters
Returns
string
protected
resolve_index_name( string $unprefixed_table_name
, string $index_id
)
: string
Returns index name.
Parameters
$unprefixed_table_name
$index_id
Returns
string
create_indexes()
,
create_table()
,
create_unique_indexes()
,
optimize()
,
render_column()
,
table_exists()
Properties summary
Magic properties