Class MySQLDriver
Connection driver for MySQL.
-
ICanBoogie\ActiveRecord\Driver\BasicDriver
implements
ICanBoogie\ActiveRecord\Driver
uses
ICanBoogie\Accessor\AccessorTrait (not available)
-
┗
ICanBoogie\ActiveRecord\Driver\MySQLDriver
Methods summary
public
table_exists( string $unprefixed_name
)
: boolean
Parameters
$unprefixed_name
- The unprefixed name of the table.
Returns
boolean
true
if the table exists, false
otherwise.
Inheritdoc
protected
render_create_table( string $unprefixed_table_name
, ICanBoogie\ActiveRecord\Schema
$schema
)
: string
Renders create table statement.
Renders create table statement.
Parameters
$unprefixed_table_name
$schema
Returns
string
protected
render_create_table_lines( ICanBoogie\ActiveRecord\Schema
$schema
)
: array
Renders the lines used to create a table.
Renders the lines used to create a table.
Parameters
Returns
array
protected
render_create_table_primary_key( ICanBoogie\ActiveRecord\Schema
$schema
)
: string
Renders primary key clause to create table.
Renders primary key clause to create table.
Parameters
Returns
string
protected
create_indexes_of( string $type
, string $unprefixed_table_name
, array $indexes
)
Creates indexes of a give type.
Creates indexes of a give type.
Parameters
$type
- e.g. "UNIQUE".
$unprefixed_table_name
$indexes
__construct()
,
cast_value()
,
get_connection()
,
quote_identifier()
,
quote_string()
,
resolve_index_name()
,
resolve_quoted_table_name()
,
resolve_table_name()
Properties summary
$connection