Class: Doctrine_Adapter_Db2
Source Location: /Doctrine/Adapter/Db2.phpClass Doctrine_Adapter_Db2
Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK] Located in /Doctrine/Adapter/Db2.php [line 35] Doctrine_Adapter | --Doctrine_Adapter_Db2Author(s):
|
array | $_config | User-provided configuration. |
int | $_execute_mode | Execution mode |
string | $_lastInsertTable | Table name of the last accessed table for an insert operation This is a DB2-Adapter-specific member variable with the utmost probability you might not find it in other adapters... |
Doctrine_Adapter_Db2 | __construct() | Constructor. |
void | closeConnection() | Force the connection to close. |
string | getQuoteIdentifierSymbol() | |
Doctrine_Statement_Db2 | prepare() | Returns an SQL statement for preparation. |
void | setFetchMode() | Set the fetch mode. |
void | _beginTransaction() | Begin a transaction. |
void | _commit() | Commit a transaction. |
void | _connect() | Creates a connection resource. |
int | _getExecuteMode() | Gets the execution mode |
string | _quote() | Quote a raw string. |
void | _rollBack() | Rollback a transaction. |
void | _setExecuteMode() |
'dbname' => null,
'username' => null,
'password' => null,
'host' => 'localhost',
'port' => '50000',
'protocol' => 'TCPIP',
'persistent' => false
) [line 52]
User-provided configuration.
Basic keys are:
username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to (default 127.0.0.1) dbname => (string) The name of the database to user protocol => (string) Protocol to use, defaults to "TCPIP" port => (integer) Port number to use for TCP/IP if protocol is "TCPIP" persistent => (boolean) Set TRUE to use a persistent connection (db2_pconnect)
API Tags:Access: | protected |
|
Constructor.
$config is an array of key/value pairs containing configuration options. These options are common to most adapters:
dbname => (string) The name of the database to user username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to, defaults to localhost port => (string) The port of the database, defaults to 50000 persistent => (boolean) Whether to use a persistent connection or not, defaults to false protocol => (string) The network protocol, defaults to TCPIP options => (array) Other database options such as autocommit, case, and cursor options
Parameters:array | $config: | An array of configuration keys. |
API Tags:
Access: | public |
|
Force the connection to close.
API Tags:
Access: | public |
|
API Tags:
Access: | public |
|
Returns an SQL statement for preparation.
Parameters:string | $sql: | The SQL statement with placeholders. |
API Tags:
Access: | public |
|
Set the fetch mode.
Parameters:integer | $mode: |
API Tags:
Access: | public |
|
Begin a transaction.
API Tags:
Access: | protected |
|
Creates a connection resource.
API Tags:
Access: | protected |
|
Gets the execution mode
API Tags:
Return: | the execution mode (DB2_AUTOCOMMIT_ON or DB2_AUTOCOMMIT_OFF) |
Access: | public |
|
Quote a raw string.
Parameters:string | $value: | Raw string |
API Tags:
Return: | Quoted string |
Access: | protected |