PostgresqlGrammar
class PostgresqlGrammar extends AbstractQueryGrammar (View source)
Class PostgresqlQueryGrammar
Constants
PRIMARY |
|
INDEX |
|
UNIQUE |
|
SPATIAL |
|
FULLTEXT |
|
FOREIGN |
|
Properties
static Query | $query | Property query. |
Methods
static string
build()
build
static string
listDatabases(array|string $where = null)
showDatabases
static string
createDatabase(string $name, string $encoding = null, string $owner = null)
createDatabase
static string
dropDatabase(string $db, bool $ifExist = false)
dropTable
static string
showTableColumns(string $table)
showTableColumn
static string
showDbTables(string $dbname, string $where = null)
showDbTables
static string
createTable(string $name, array $columns, array|string $pks = array(), array $keys = array(), string $inherits = null, bool $ifNotExists = true, string $tablespace = null)
createTable
static string
dropTable(string $table, bool $ifExists = false, string $option = '')
dropTable
static string
comment(string $object = 'COLUMN', string $table, string $column, string $comment)
comment
static string
alterColumn(string $operation, string $table, string $column, string $type = null, bool $notNull = false, null $default = null)
alterColumn
static string
addColumn(string $table, string $column, string $type = 'text', bool $allowNull = false, string $default = null)
Add column
static string
renameColumn(string $table, string $oldColumn, string $newColumn)
changeColumn
static string
dropColumn(string $table, string $column)
dropColumn
static string
addIndex(string $table, string $type, array $columns, string $name)
addIndex
static string
buildIndexDeclare(string $name, array $columns, $table = null)
buildIndexDeclare
static string
dropIndex(string $name, bool $ifExists = false, bool $concurrently = false)
dropIndex
static string
dropConstraint(string $table, string $name, bool $ifExists = false, string $action = null)
dropConstraint
static string
changeColumn(string $table, string $oldColumn, string $newColumn, string $type = 'text')
changeColumn
Details
in AbstractQueryGrammar at line line 39
static QueryGrammarInterface
getInstance(string $name)
getInstance
at line line 481
static string
build()
build
at line line 43
static string
listDatabases(array|string $where = null)
showDatabases
at line line 61
static string
createDatabase(string $name, string $encoding = null, string $owner = null)
createDatabase
at line line 81
static string
dropDatabase(string $db, bool $ifExist = false)
dropTable
at line line 99
static string
showTableColumns(string $table)
showTableColumn
at line line 140
static string
showDbTables(string $dbname, string $where = null)
showDbTables
at line line 171
static string
createTable(string $name, array $columns, array|string $pks = array(), array $keys = array(), string $inherits = null, bool $ifNotExists = true, string $tablespace = null)
createTable
at line line 242
static string
dropTable(string $table, bool $ifExists = false, string $option = '')
dropTable
at line line 264
static string
comment(string $object = 'COLUMN', string $table, string $column, string $comment)
comment
at line line 288
static string
alterColumn(string $operation, string $table, string $column, string $type = null, bool $notNull = false, null $default = null)
alterColumn
at line line 316
static string
addColumn(string $table, string $column, string $type = 'text', bool $allowNull = false, string $default = null)
Add column
at line line 340
static string
renameColumn(string $table, string $oldColumn, string $newColumn)
changeColumn
at line line 355
static string
dropColumn(string $table, string $column)
dropColumn
at line line 377
static string
addIndex(string $table, string $type, array $columns, string $name)
addIndex
at line line 398
static string
buildIndexDeclare(string $name, array $columns, $table = null)
buildIndexDeclare
at line line 440
static string
dropIndex(string $name, bool $ifExists = false, bool $concurrently = false)
dropIndex
at line line 462
static string
dropConstraint(string $table, string $name, bool $ifExists = false, string $action = null)
dropConstraint
at line line 527
static string
changeColumn(string $table, string $oldColumn, string $newColumn, string $type = 'text')
changeColumn