MySqlGrammar
class MySqlGrammar extends Grammar (View source)
Methods
Convert an array of column names into a delimited string.
Get the appropriate query parameter place-holder for a value.
Compile a rename column command.
Compile a change column command into a series of SQL statements.
Compile the query to determine the list of tables.
Compile the query to determine the list of columns.
Compile a create table command.
Compile a drop table (if exists) command.
Details
string
wrap(
Expression|string $value,
bool $prefixAlias = false)
Wrap a value in keyword identifiers.
array
compileRenameColumn(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a rename column command.
array
compileChange(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a change column command into a series of SQL statements.
at line line 53
string
compileCreate(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a create table command.
at line line 107
string
compileAdd(
Blueprint $blueprint,
Fluent $command)
Compile an add column command.
at line line 123
string
compilePrimary(
Blueprint $blueprint,
Fluent $command)
Compile a primary key command.
at line line 137
string
compileUnique(
Blueprint $blueprint,
Fluent $command)
Compile a unique key command.
at line line 149
string
compileIndex(
Blueprint $blueprint,
Fluent $command)
Compile a plain index key command.
at line line 180
string
compileDrop(
Blueprint $blueprint,
Fluent $command)
Compile a drop table command.
at line line 192
string
compileDropIfExists(
Blueprint $blueprint,
Fluent $command)
Compile a drop table (if exists) command.
at line line 204
string
compileDropColumn(
Blueprint $blueprint,
Fluent $command)
Compile a drop column command.
at line line 220
string
compileDropPrimary(
Blueprint $blueprint,
Fluent $command)
Compile a drop primary key command.
at line line 232
string
compileDropUnique(
Blueprint $blueprint,
Fluent $command)
Compile a drop unique key command.
at line line 248
string
compileDropIndex(
Blueprint $blueprint,
Fluent $command)
Compile a drop index command.