final class SchemaCompiler (View source)

Methods

string
compileCreate(string $table, Closure $definition, bool $ifNotExists = false)
string
array
compileCreateStatements(string $table, Closure $definition, bool $ifNotExists = false)
array
string
string
array
compileTable(string $table, Closure $definition)
array
string
compileDrop(string $table, bool $ifExists = false)
string
string
compileRename(string $from, string $to)
string
string
compileCreateDatabase(string $database)
string
string
compileDropDatabase(string $database)
string

Details

__construct

__construct(SchemaGrammarInterface $grammar)

No description

Parameters

SchemaGrammarInterface $grammar

compileCreate

string compileCreate(string $table, Closure $definition, bool $ifNotExists = false)

No description

Parameters

string $table
Closure $definition
bool $ifNotExists

Return Value

string

compileCreateStatements

array compileCreateStatements(string $table, Closure $definition, bool $ifNotExists = false)

No description

Parameters

string $table
Closure $definition
bool $ifNotExists

Return Value

array

compileCreateTable

string compileCreateTable(TableDefinition $definition)

No description

Parameters

TableDefinition $definition

Return Value

string

compileCreateTableStatements

array compileCreateTableStatements(TableDefinition $definition)

No description

Parameters

TableDefinition $definition

Return Value

array

compileTable

array compileTable(string $table, Closure $definition)

No description

Parameters

string $table
Closure $definition

Return Value

array

compileDrop

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

No description

Parameters

string $table
bool $ifExists

Return Value

string

compileRename

string compileRename(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

string

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