Class:MsSqlPlatform - Superclass: AbstractPlatform AbstractPlatform
⌊ MsSqlPlatform
public class MsSqlPlatform
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 | |
---|---|
array | getAlterTableSQL(TableDiff diff) Gets the sql statements for altering an existing table. |
string | getBigIntTypeDeclarationSQL(mixed field, array columnDef) |
string | getBooleanTypeDeclarationSQL(mixed field, array columnDef) |
void | getClobTypeDeclarationSQL(array field) @override |
string | getConcatExpression(string arg1, string arg2, string values..., string arg1,) Returns string to concatenate two or more string parameters |
string | getCreateDatabaseSQL(string name, mixed database) create a new database |
string | getDateTimeTypeDeclarationSQL(array fieldDeclaration) |
string | getDateTypeDeclarationSQL(array fieldDeclaration) |
string | getDropDatabaseSQL(string name, mixed database) drop an existing database |
string | getEmptyIdentityInsertSQL(mixed quotedTableName, mixed quotedIdentifierColumnName, string tableName, string identifierColumnName) Get the insert sql for an empty insert statement |
string | Returns global unique identifier |
string | getIntegerTypeDeclarationSQL(mixed field, array columnDef) |
void | |
string | getName() Get the platform name for this instance |
string | getNowExpression(mixed type) Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time: - CURRENT_TIMESTAMP (date and time, TIMESTAMP type) - CURRENT_DATE (date, DATE type) - CURRENT_TIME (time, TIME type) |
string | Returns the regular expression operator. |
void | getSetTransactionIsolationSQL(integer level) Get sql to set the transaction isolation level |
string | Get sql query to show a list of database. |
string | getSmallIntTypeDeclarationSQL(mixed field, array columnDef) |
string | getSubstringExpression(string value, mixed position, mixed length, integer from, integer len) return string to call a function to get a substring inside an SQL statement |
string | getTimeTypeDeclarationSQL(array fieldDeclaration) |
string | getTruncateTableSQL(string tableName, bool cascade) |
void | getVarcharTypeDeclarationSQL(array field) Gets the SQL snippet used to declare a VARCHAR column type. |
string | modifyLimitQuery(string query, mixed limit, mixed offset) Adds an adapter-specific LIMIT clause to the SELECT statement. |
boolean | Whether the platform prefers identity columns for ID generation. |
boolean | Whether the platform supports identity columns. |
boolean | Whether the platform supports savepoints. |
string | writeLimitClause(string query, mixed limit, mixed offset) Adds an adapter-specific LIMIT clause to the SELECT statement. |
public array getAlterTableSQL(TableDiff diff)
Gets the sql statements for altering an existing table.
The method returns an array of sql statements, since some platforms need several statements.
public string getBigIntTypeDeclarationSQL(mixed field, array columnDef)
public string getBooleanTypeDeclarationSQL(mixed field, array columnDef)
public void getClobTypeDeclarationSQL(array field)
public string getConcatExpression(string arg1, string arg2, string values..., string arg1,)
Returns string to concatenate two or more string parameters
public string getCreateDatabaseSQL(string name, mixed database)
create a new database
public string getDateTimeTypeDeclarationSQL(array fieldDeclaration)
public string getDateTypeDeclarationSQL(array fieldDeclaration)
public string getDropDatabaseSQL(string name, mixed database)
drop an existing database
public string getEmptyIdentityInsertSQL(mixed quotedTableName, mixed quotedIdentifierColumnName, string tableName, string identifierColumnName)
Get the insert sql for an empty insert statement
public string getGuidExpression()
Returns global unique identifier
public string getIntegerTypeDeclarationSQL(mixed field, array columnDef)
public void getListTablesSQL()
public string getName()
Get the platform name for this instance
public string getNowExpression(mixed type)
Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time: - CURRENT_TIMESTAMP (date and time, TIMESTAMP type) - CURRENT_DATE (date, DATE type) - CURRENT_TIME (time, TIME type)
public string getRegexpExpression()
Returns the regular expression operator.
public void getSetTransactionIsolationSQL(integer level)
Get sql to set the transaction isolation level
public string getShowDatabasesSQL()
Get sql query to show a list of database.
public string getSmallIntTypeDeclarationSQL(mixed field, array columnDef)
public string getSubstringExpression(string value, mixed position, mixed length, integer from, integer len)
return string to call a function to get a substring inside an SQL statement
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 type.
public string modifyLimitQuery(string query, mixed limit, mixed offset)
Adds an adapter-specific LIMIT clause to the SELECT statement.
public boolean prefersIdentityColumns()
Whether the platform prefers identity columns for ID generation. MsSql prefers "autoincrement" identity columns since sequences can only be emulated with a table.
public boolean supportsIdentityColumns()
Whether the platform supports identity columns. MsSql supports this through AUTO_INCREMENT columns.
public boolean supportsSavepoints()
Whether the platform supports savepoints. MsSql does not.
public string writeLimitClause(string query, mixed limit, mixed offset)
Adds an adapter-specific LIMIT clause to the SELECT statement. [ borrowed from Zend Framework ]
http://lists.bestpractical.com/pipermail/rt-devel/2005-June/007339.html
The MsSqlPlatform provides the behavior, features and SQL dialect of the MySQL database platform.