class SqlsrvAdapter extends MssqlAdapter implements SqlAdapterInterface
This is used to connect to a MSSQL database using pdo_sqlsrv driver.
Methods
setCharset(ConnectionInterface $con, string $charset) | ||
string |
concatString(string $s1, string $s2)
Returns SQL which concatenates the second string to the first. |
from MssqlAdapter |
string |
subString(string $s, integer $pos, integer $len)
Returns SQL which extracts a substring. |
from MssqlAdapter |
string |
strLength(string $s)
Returns SQL which calculates the length (in chars) of a string. |
from MssqlAdapter |
string | quoteIdentifier(string $text) | from MssqlAdapter |
string | quoteIdentifierTable(string $table) | from MssqlAdapter |
string | random(string $seed = null) | from MssqlAdapter |
void |
applyLimit(string $sql, integer $offset, integer $limit)
Simulated Limit/Offset |
from MssqlAdapter |
cleanupSQL(string $sql, array $params, Criteria $values, DatabaseMap $dbMap) | ||
initConnection(ConnectionInterface $con, array $settings) | ||
boolean | bindValue(StatementInterface $stmt, string $parameter, mixed $value, ColumnMap $cMap, null|integer $position = null) |
Details
at line 50
public
setCharset(ConnectionInterface $con, string $charset)
in MssqlAdapter at line 48
public string
concatString(string $s1, string $s2)
Returns SQL which concatenates the second string to the first.
in MssqlAdapter at line 62
public string
subString(string $s, integer $pos, integer $len)
Returns SQL which extracts a substring.
in MssqlAdapter at line 73
public string
strLength(string $s)
Returns SQL which calculates the length (in chars) of a string.
in MssqlAdapter at line 84
public string
quoteIdentifier(string $text)
in MssqlAdapter at line 95
public string
quoteIdentifierTable(string $table)
in MssqlAdapter at line 107
public string
random(string $seed = null)
in MssqlAdapter at line 127
public void
applyLimit(string $sql, integer $offset, integer $limit)
Simulated Limit/Offset
This rewrites the $sql query to apply the offset and limit.
some of the ORDER BY logic borrowed from Doctrine MsSqlPlatform