PHP Class LazyRecord\Migration\BaseMigration

Afficher le fichier Open project: corneltek/lazyrecord Class Usage Examples

Protected Properties

Свойство Type Description
$builder LazyRecord\SqlBuilder\BaseBuilder
$connection object
$driver QueryDriver
$logger CLIFramework\Logger

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
showSql ( $sql, $title = '' )

Method Details

__construct() public méthode

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

alterTable() public méthode

public alterTable ( $arg )

executeQuery() public méthode

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

executeSql() public méthode

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

importSchema() public méthode

public importSchema ( $schema )

query() public méthode

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

showSql() protected méthode

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

Property Details

$builder protected_oe property

protected LazyRecord\SqlBuilder\BaseBuilder $builder
Résultat LazyRecord\SqlBuilder\BaseBuilder

$connection protected_oe property

object
protected $connection

$driver protected_oe property

protected QueryDriver $driver
Résultat QueryDriver

$logger protected_oe property

protected Logger,CLIFramework $logger
Résultat CLIFramework\Logger