final class SqliteSchemaGrammar implements SchemaGrammarInterface (View source)

Methods

string
compileCreateDatabase(string $database)
string
string
compileDropDatabase(string $database)
string
string
array
string
compileDropTable(string $table, bool $ifExists = false)
string
string
compileRenameTable(string $from, string $to)
string
string
compileAddColumn(string $table, ColumnDefinition $column)
string
string
compileModifyColumn(string $table, ColumnDefinition $column)
string
string
compileDropColumn(string $table, string $column)
string
string
compileAddIndex(string $table, IndexDefinition $index)
string
string
compileDropIndex(string $table, string $index)
string
string
compileAddForeignKey(string $table, ForeignKeyDefinition $foreignKey)
string
string
compileDropForeignKey(string $table, string $foreignKey)
string

Details

__construct

__construct(SqliteSqlEscaper $escaper, DatabaseConfig $config)

No description

Parameters

SqliteSqlEscaper $escaper
DatabaseConfig $config

compileCreateDatabase

string compileCreateDatabase(string $database)

No description

Parameters

string $database

Return Value

string

compileDropDatabase

string compileDropDatabase(string $database)

No description

Parameters

string $database

Return Value

string

compileCreateTable

string compileCreateTable(TableDefinition $table)

No description

Parameters

TableDefinition $table

Return Value

string

compileCreateTableStatements

array compileCreateTableStatements(TableDefinition $table)

No description

Parameters

TableDefinition $table

Return Value

array

compileAlterTable

array compileAlterTable(TableDefinition $table)

No description

Parameters

TableDefinition $table

Return Value

array

compileDropTable

string compileDropTable(string $table, bool $ifExists = false)

No description

Parameters

string $table
bool $ifExists

Return Value

string

compileRenameTable

string compileRenameTable(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

string

compileAddColumn

string compileAddColumn(string $table, ColumnDefinition $column)

No description

Parameters

string $table
ColumnDefinition $column

Return Value

string

compileModifyColumn

string compileModifyColumn(string $table, ColumnDefinition $column)

No description

Parameters

string $table
ColumnDefinition $column

Return Value

string

compileDropColumn

string compileDropColumn(string $table, string $column)

No description

Parameters

string $table
string $column

Return Value

string

compileAddIndex

string compileAddIndex(string $table, IndexDefinition $index)

No description

Parameters

string $table
IndexDefinition $index

Return Value

string

compileDropIndex

string compileDropIndex(string $table, string $index)

No description

Parameters

string $table
string $index

Return Value

string

compileAddForeignKey

string compileAddForeignKey(string $table, ForeignKeyDefinition $foreignKey)

No description

Parameters

string $table
ForeignKeyDefinition $foreignKey

Return Value

string

compileDropForeignKey

string compileDropForeignKey(string $table, string $foreignKey)

No description

Parameters

string $table
string $foreignKey

Return Value

string