ICanBoogie/ActiveRecord master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • ActiveRecord
      • Driver

Classes

  • BasicDriver
  • MySQLDriver
  • SQLiteDriver

Class BasicDriver

Basic connection driver.

ICanBoogie\ActiveRecord\Driver\BasicDriver implements ICanBoogie\ActiveRecord\Driver uses ICanBoogie\Accessor\AccessorTrait (not available)

Direct known subclasses

ICanBoogie\ActiveRecord\Driver\MySQLDriver

Indirect known subclasses

ICanBoogie\ActiveRecord\Driver\SQLiteDriver

Abstract
Namespace: ICanBoogie\ActiveRecord\Driver
Located at ActiveRecord/Driver/BasicDriver.php

Methods summary

protected ICanBoogie\ActiveRecord\Connection
# get_connection( )

Returns

ICanBoogie\ActiveRecord\Connection
public
# __construct( callable $connection_provider )

Parameters

$connection_provider
A callable that provides a database connection.
public string|array
# quote_string( string|array $string )

Parameters

$string

Returns

string|array

Inheritdoc

Implementation of

ICanBoogie\ActiveRecord\Driver::quote_string()
public string|array
# quote_identifier( string|array $identifier )

Parameters

$identifier

Returns

string|array

Inheritdoc

Implementation of

ICanBoogie\ActiveRecord\Driver::quote_identifier()
public mixed
# cast_value( mixed $value, string|null $type = null )

Parameters

$value
$type
One of SchemaColumn::TYPE_*.

Returns

mixed

Inheritdoc

Implementation of

ICanBoogie\ActiveRecord\Driver::cast_value()
protected string
# resolve_table_name( string $unprefixed_table_name )

Returns table name, including possible prefix.

Returns table name, including possible prefix.

Parameters

$unprefixed_table_name

Returns

string
protected string
# resolve_quoted_table_name( string $unprefixed_table_name )

Returns quoted table name, including possible prefix.

Returns quoted table name, including possible prefix.

Parameters

$unprefixed_table_name

Returns

string
protected string
# resolve_index_name( string $unprefixed_table_name, string $index_id )

Returns index name.

Returns index name.

Parameters

$unprefixed_table_name
$index_id

Returns

string

Methods inherited from ICanBoogie\ActiveRecord\Driver

create_indexes(), create_table(), create_unique_indexes(), optimize(), render_column(), table_exists()

Properties summary

Magic properties

public read-only ICanBoogie\ActiveRecord\Connection $connection
ICanBoogie/ActiveRecord master API documentation generated by ApiGen