Class:PostgreSqlPlatform - Superclass: AbstractPlatform AbstractPlatform
⌊ PostgreSqlPlatform
public class PostgreSqlPlatform
extends AbstractPlatform
www.doctrine-project.org
Fields inherited from Doctrine\DBAL\Platforms\AbstractPlatform | |
---|---|
CREATE_FOREIGNKEYS, CREATE_INDEXES, TRIM_BOTH, TRIM_LEADING, TRIM_TRAILING, TRIM_UNSPECIFIED |
Method Summary | |
---|---|
void | convertBooleans(array item) Postgres wants boolean values converted to the strings 'true'/'false'. |
string | getAdvancedForeignKeyOptionsSQL(\Doctrine\DBAL\Schema\ForeignKeyConstraint foreignKey) Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... |
array | getAlterTableSQL(TableDiff diff, string name, array changes, boolean check) generates the sql for altering an existing table on postgresql |
string | getBigIntTypeDeclarationSQL(mixed field, array columnDef) |
string | getBooleanTypeDeclarationSQL(mixed field, array columnDef) |
void | getClobTypeDeclarationSQL(array field) @override |
void | getCreateDatabaseSQL(string name, mixed database) create a new database |
string | getCreateSequenceSQL(\Doctrine\DBAL\Schema\Sequence sequence) Gets the SQL to create a sequence on this platform. |
void | getCreateViewSQL(mixed name, mixed sql) |
string | Gets the format string, as accepted by the date() function, that describes the format of a stored datetime value of this platform. |
string | getDateTimeTypeDeclarationSQL(array fieldDeclaration) |
string | getDateTypeDeclarationSQL(array fieldDeclaration) |
void | getDropDatabaseSQL(string name, mixed database) drop an existing database |
string | getDropForeignKeySQL(ForeignKeyConstraint|string foreignKey, Table|string table) |
string | getDropSequenceSQL(\Doctrine\DBAL\Schema\Sequence sequence) Drop existing sequence |
void | getDropViewSQL(mixed name) |
string | getEmptyIdentityInsertSQL(mixed quotedTableName, mixed quotedIdentifierColumnName, string tableName, string identifierColumnName) Get the insert sql for an empty insert statement |
string | getIntegerTypeDeclarationSQL(mixed field, array columnDef) |
void | |
void | getListSequencesSQL(mixed database) |
void | getListTableColumnsSQL(mixed table) |
void | getListTableConstraintsSQL(mixed table) |
void | getListTableForeignKeysSQL(mixed table, mixed database) |
string | getListTableIndexesSQL(string table) |
void | |
string | getListViewsSQL(string database) Get the SQL to list all views of a database or user. |
integer | getLocateExpression(string str, string substr, mixed startPos, int pos) returns the position of the first occurrence of substring $substr in string $str |
string | getName() Get the platform name for this instance |
string | Returns the SQL string to return the current system date and time. |
string | regexp |
string | getSQLResultCasing(string column) Gets the character casing of a column in an SQL result set. |
void | getSequenceNextValSQL(mixed sequenceName) |
void | getSetTransactionIsolationSQL(integer level) Get sql to set the transaction isolation level |
string | getSmallIntTypeDeclarationSQL(mixed field, array columnDef) |
string | getSubstringExpression(string value, int from, int len) Returns part of a string. |
string | getTimeTypeDeclarationSQL(array fieldDeclaration) |
string | getTruncateTableSQL(string tableName, bool cascade) |
void | getVarcharTypeDeclarationSQL(array field) Gets the SQL snippet used to declare a VARCHAR column on the MySql platform. |
boolean | Whether the platform prefers sequences for ID generation. |
boolean | Whether the platform supports identity columns. |
boolean | Whether the platform supports database schemas. |
boolean | Whether the platform supports sequences. |
public void convertBooleans(array item)
Postgres wants boolean values converted to the strings 'true'/'false'.
public string getAdvancedForeignKeyOptionsSQL(\Doctrine\DBAL\Schema\ForeignKeyConstraint foreignKey)
Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
public array getAlterTableSQL(TableDiff diff, string name, array changes, boolean check)
generates the sql for altering an existing table on postgresql
public string getBigIntTypeDeclarationSQL(mixed field, array columnDef)
public string getBooleanTypeDeclarationSQL(mixed field, array columnDef)
public void getClobTypeDeclarationSQL(array field)
public void getCreateDatabaseSQL(string name, mixed database)
create a new database
public string getCreateSequenceSQL(\Doctrine\DBAL\Schema\Sequence sequence)
Gets the SQL to create a sequence on this platform.
public void getCreateViewSQL(mixed name, mixed sql)
public string getDateTimeFormatString()
Gets the format string, as accepted by the date() function, that describes the format of a stored datetime value of this platform.
public string getDateTimeTypeDeclarationSQL(array fieldDeclaration)
public string getDateTypeDeclarationSQL(array fieldDeclaration)
public void getDropDatabaseSQL(string name, mixed database)
drop an existing database
public string getDropForeignKeySQL(ForeignKeyConstraint|string foreignKey, Table|string table)
public string getDropSequenceSQL(\Doctrine\DBAL\Schema\Sequence sequence)
Drop existing sequence
public void getDropViewSQL(mixed name)
public string getEmptyIdentityInsertSQL(mixed quotedTableName, mixed quotedIdentifierColumnName, string tableName, string identifierColumnName)
Get the insert sql for an empty insert statement
public string getIntegerTypeDeclarationSQL(mixed field, array columnDef)
public void getListDatabasesSQL()
public void getListSequencesSQL(mixed database)
public void getListTableColumnsSQL(mixed table)
public void getListTableConstraintsSQL(mixed table)
public void getListTableForeignKeysSQL(mixed table, mixed database)
public string getListTableIndexesSQL(string table)
http://ezcomponents.org/docs/api/trunk/DatabaseSchema/ezcDbSchemaPgsqlReader.html
public void getListTablesSQL()
public string getListViewsSQL(string database)
Get the SQL to list all views of a database or user.
public integer getLocateExpression(string str, string substr, mixed startPos, int pos)
returns the position of the first occurrence of substring $substr in string $str
public string getName()
Get the platform name for this instance
public string getNowExpression()
Returns the SQL string to return the current system date and time.
public string getRegexpExpression()
regexp
public string getSQLResultCasing(string column)
Gets the character casing of a column in an SQL result set.
PostgreSQL returns all column names in SQL result sets in lowercase.
public void getSequenceNextValSQL(mixed sequenceName)
public void getSetTransactionIsolationSQL(integer level)
Get sql to set the transaction isolation level
public string getSmallIntTypeDeclarationSQL(mixed field, array columnDef)
public string getSubstringExpression(string value, int from, int len)
Returns part of a string.
Note: Not SQL92, but common functionality.
public string getTimeTypeDeclarationSQL(array fieldDeclaration)
public string getTruncateTableSQL(string tableName, bool cascade)
public void getVarcharTypeDeclarationSQL(array field)
Gets the SQL snippet used to declare a VARCHAR column on the MySql platform.
public boolean prefersSequences()
Whether the platform prefers sequences for ID generation.
public boolean supportsIdentityColumns()
Whether the platform supports identity columns. Postgres supports these through the SERIAL keyword.
public boolean supportsSchemas()
Whether the platform supports database schemas.
public boolean supportsSequences()
Whether the platform supports sequences. Postgres has native support for sequences.
PostgreSqlPlatform.