PHP Class LazyRecord\Migration\BaseMigration

ファイルを表示 Open project: corneltek/lazyrecord Class Usage Examples

Protected Properties

Property Type Description
$builder LazyRecord\SqlBuilder\BaseBuilder
$connection object
$driver QueryDriver
$logger CLIFramework\Logger

Public Methods

Method Description
__construct ( PDO $connection, BaseDriver $driver, CLIFramework\Logger $logger = null )
alterTable ( $arg )
executeQuery ( SQLBuilder\ToSqlInterface $query ) executeQuery method execute the query for objects that supports SQLBuilder\ToSqlInterface.
executeSql ( $sql ) Deprecated, use query method instead.
importSchema ( $schema )
query ( string $sql, $title = '' ) Execute sql for migration.

Protected Methods

Method Description
showSql ( $sql, $title = '' )

Method Details

__construct() public method

public __construct ( PDO $connection, BaseDriver $driver, CLIFramework\Logger $logger = null )
$connection PDO
$driver SQLBuilder\Driver\BaseDriver
$logger CLIFramework\Logger

alterTable() public method

public alterTable ( $arg )

executeQuery() public method

executeQuery method execute the query for objects that supports SQLBuilder\ToSqlInterface.
public executeQuery ( SQLBuilder\ToSqlInterface $query )
$query SQLBuilder\ToSqlInterface

executeSql() public method

Deprecated, use query method instead.
Deprecation:
public executeSql ( $sql )

importSchema() public method

public importSchema ( $schema )

query() public method

Execute sql for migration.
public query ( string $sql, $title = '' )
$sql string

showSql() protected method

protected showSql ( $sql, $title = '' )

Property Details

$builder protected_oe property

protected LazyRecord\SqlBuilder\BaseBuilder $builder
return LazyRecord\SqlBuilder\BaseBuilder

$connection protected_oe property

object
protected $connection

$driver protected_oe property

protected QueryDriver $driver
return QueryDriver

$logger protected_oe property

protected Logger,CLIFramework $logger
return CLIFramework\Logger