Database: ezcDbHandlerMssql
[ ]
[ Oracle setup ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDbHandlerMssql
|
MS SQL Server driver implementation. [
source]
Parents
PDO
|
--ezcDbHandler
|
--ezcDbHandlerMssql
Member Variables
Inherited Member Variables
From
ezcDbHandler:
Method Summary
|
public ezcDbHandlerMssql |
__construct(
$dbParams )
Constructs a handler object from the parameters $dbParams. |
|
public bool |
beginTransaction(
)
Begins a transaction. |
|
public bool |
commit(
)
Commits a transaction. |
|
public ezcQueryExpressionMssql |
createExpression(
)
Returns a new ezcQueryExpression derived object with SQL Server implementation specifics. |
|
public ezcQuerySelectMssql |
createSelectQuery(
)
Returns a new ezcQuerySelectMssql derived object with SQL Server implementation specifics. |
|
public static string |
getName(
)
Returns 'mssql'. |
|
public bool |
rollback(
)
Rollback a transaction. |
|
public void |
setOptions(
$options )
Associates an option object with this handler and changes settings for opened connections. |
Inherited Methods
From
ezcDbHandler :
Methods
__construct
ezcDbHandlerMssql __construct(
$dbParams )
Constructs a handler object from the parameters $dbParams.
Supported database parameters are:
- dbname|database: Database name
- host|hostspec: Name of the host database is running on
- port: TCP port
- user|username: Database user name
- pass|password: Database user password
Parameters
| Name |
Type |
Description |
$dbParams |
array |
Database connection parameters (key=>value pairs). |
Throws
| Class | Description |
ezcDbMissingParameterException |
if the database name was not specified. |
Redefinition of
beginTransaction
bool beginTransaction(
)
Begins a transaction.
This method executes a begin transaction query unless a transaction has already been started (transaction nesting level > 0 ).
Each call to begin() must have a corresponding commit() or rollback() call.
See also:
ezcDbHandlerMssql::rollback(),
ezcDbHandlerMssql::commit().
Redefinition of
commit
bool commit(
)
Commits a transaction.
If this this call to commit corresponds to the outermost call to begin() and all queries within this transaction were successful, a commit query is executed. If one of the queries returned with an error, a rollback query is executed instead.
This method returns true if the transaction was successful. If the transaction failed and rollback was called, false is returned.
See also:
ezcDbHandlerMssql::rollback(), begin().
Redefinition of
createExpression
Returns a new ezcQueryExpression derived object with SQL Server implementation specifics.
Redefinition of
createSelectQuery
Returns a new ezcQuerySelectMssql derived object with SQL Server implementation specifics.
Redefinition of
getName
string getName(
)
Returns 'mssql'.
rollback
bool rollback(
)
Rollback a transaction.
If this this call to rollback corresponds to the outermost call to begin(), a rollback query is executed. If this is an inner transaction (nesting level > 1) the error flag is set, leaving the rollback to the outermost transaction.
This method always returns true.
See also:
ezcDbHandlerMssql::commit(), begin().
Redefinition of
setOptions
Associates an option object with this handler and changes settings for opened connections.
Parameters
Last updated: Mon, 10 Nov 2008