Grammar
class Grammar extends Grammar (View source)
Methods
string
string
string
columnize(
array $columns)
Convert an array of column names into a delimited string.
from Grammar
string
parameter(
mixed $value)
Get the appropriate query parameter place-holder for a value.
from Grammar
array
compileRenameColumn(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a rename column command.
string
array
prefixArray(
string $prefix,
array $values)
Add a prefix to an array of values.
array
compileChange(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a change column command into a series of SQL statements.
Details
at line line 229
string
wrap(
Expression|string $value,
bool $prefixAlias = false)
Wrap a value in keyword identifiers.
at line line 28
array
compileRenameColumn(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a rename column command.
at line line 81
string
compileForeign(
Blueprint $blueprint,
Fluent $command)
Compile a foreign key command.
at line line 203
array
prefixArray(
string $prefix,
array $values)
Add a prefix to an array of values.
at line line 285
array
compileChange(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a change column command into a series of SQL statements.