SQLiteGrammar
class SQLiteGrammar 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.
Compile a drop column 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.
at line line 203
string
compileForeign(
Blueprint $blueprint,
Fluent $command)
Compile a foreign key command.
array
compileChange(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a change column command into a series of SQL statements.
at line line 41
string
compileColumnExists(
string $table)
Compile the query to determine the list of columns.
at line line 53
string
compileCreate(
Blueprint $blueprint,
Fluent $command)
Compile a create table command.
at line line 145
array
compileAdd(
Blueprint $blueprint,
Fluent $command)
Compile alter table commands for adding columns.
at line line 167
string
compileUnique(
Blueprint $blueprint,
Fluent $command)
Compile a unique key command.
at line line 185
string
compileIndex(
Blueprint $blueprint,
Fluent $command)
Compile a plain index key command.
at line line 215
string
compileDrop(
Blueprint $blueprint,
Fluent $command)
Compile a drop table command.
at line line 227
string
compileDropIfExists(
Blueprint $blueprint,
Fluent $command)
Compile a drop table (if exists) command.
at line line 240
array
compileDropColumn(
Blueprint $blueprint,
Fluent $command,
Connection $connection)
Compile a drop column command.
at line line 262
string
compileDropUnique(
Blueprint $blueprint,
Fluent $command)
Compile a drop unique key command.