PHP Класс DbPatch_Command_Patch_SQL

Автор: Sandy Pleyte
Автор: Martijn De Letter
Автор: Rudi de Vries
Наследование: extends DbPatch_Command_Patch_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$data array

Открытые методы

Метод Описание
apply ( ) : boolean Apply SQL Patch
create ( string $description, string $patchDirectory, string $patchPrefix ) : void Create Empty SQL Patch
fixSqliteSchemaChangedBug ( ) : DbPatch_Command_Patch_SQL Fix "database schema has changed" error
getContents ( ) : string
getDescription ( ) : string Return first line of the SQL Patch
getType ( ) : string

Описание методов

apply() публичный Метод

Apply SQL Patch
public apply ( ) : boolean
Результат boolean

create() публичный Метод

Create Empty SQL Patch
public create ( string $description, string $patchDirectory, string $patchPrefix ) : void
$description string
$patchDirectory string
$patchPrefix string
Результат void

fixSqliteSchemaChangedBug() публичный Метод

The VACUUM option makes it harder to execute queries while other session (i.e. import command) modify the database. Reconnecting prevents the error.
См. также: http://www.mail-archive.com/[email protected]/msg04887.html
public fixSqliteSchemaChangedBug ( ) : DbPatch_Command_Patch_SQL
Результат DbPatch_Command_Patch_SQL

getContents() публичный Метод

public getContents ( ) : string
Результат string

getDescription() публичный Метод

Return first line of the SQL Patch
public getDescription ( ) : string
Результат string

getType() публичный Метод

public getType ( ) : string
Результат string

Описание свойств

$data защищенное свойство

protected array $data
Результат array