PostgresGrammar
class PostgresGrammar 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 52
string
compileCreate(
Blueprint $blueprint,
Fluent $command)
Compile a create table command.
at line line 70
string
compileAdd(
Blueprint $blueprint,
Fluent $command)
Compile a column addition command.
at line line 86
string
compilePrimary(
Blueprint $blueprint,
Fluent $command)
Compile a primary key command.
at line line 100
string
compileUnique(
Blueprint $blueprint,
Fluent $command)
Compile a unique key command.
at line line 118
string
compileIndex(
Blueprint $blueprint,
Fluent $command)
Compile a plain index key command.
at line line 134
string
compileDrop(
Blueprint $blueprint,
Fluent $command)
Compile a drop table command.
at line line 146
string
compileDropIfExists(
Blueprint $blueprint,
Fluent $command)
Compile a drop table (if exists) command.
at line line 158
string
compileDropColumn(
Blueprint $blueprint,
Fluent $command)
Compile a drop column command.
at line line 174
string
compileDropPrimary(
Blueprint $blueprint,
Fluent $command)
Compile a drop primary key command.
at line line 190
string
compileDropUnique(
Blueprint $blueprint,
Fluent $command)
Compile a drop unique key command.
at line line 206
string
compileDropIndex(
Blueprint $blueprint,
Fluent $command)
Compile a drop index command.