SqlServerGrammar
class SqlServerGrammar 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 if a table exists.
Compile the query to determine the list of columns.
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 40
string
compileColumnExists(
string $table)
Compile the query to determine the list of columns.
at line line 54
string
compileCreate(
Blueprint $blueprint,
Fluent $command)
Compile a create table command.
at line line 68
string
compileAdd(
Blueprint $blueprint,
Fluent $command)
Compile a column addition table command.
at line line 84
string
compilePrimary(
Blueprint $blueprint,
Fluent $command)
Compile a primary key command.
at line line 102
string
compileUnique(
Blueprint $blueprint,
Fluent $command)
Compile a unique key command.
at line line 120
string
compileIndex(
Blueprint $blueprint,
Fluent $command)
Compile a plain index key command.
at line line 138
string
compileDrop(
Blueprint $blueprint,
Fluent $command)
Compile a drop table command.
at line line 150
string
compileDropIfExists(
Blueprint $blueprint,
Fluent $command)
Compile a drop table (if exists) command.
at line line 162
string
compileDropColumn(
Blueprint $blueprint,
Fluent $command)
Compile a drop column command.
at line line 178
string
compileDropPrimary(
Blueprint $blueprint,
Fluent $command)
Compile a drop primary key command.
at line line 194
string
compileDropUnique(
Blueprint $blueprint,
Fluent $command)
Compile a drop unique key command.
at line line 210
string
compileDropIndex(
Blueprint $blueprint,
Fluent $command)
Compile a drop index command.