Current version of PDO_CUBRID doesn't support persistent connection now.
Installation
To build the PDO_CUBRID extension, the CUBRID DBMS must be installed on the
same system as PHP.
PDO_CUBRID is a » PECL extension, so follow the instructions in
Installation of PECL extensions
to install the PDO_CUBRID extension.
Issue the configure command to point to the location of the
CUBRID base dir as follows:
The configure command defaults to the value of the
CUBRID
environment variable.
A DLL for this
PECL extension is currently unavailable. See also the
building on Windows
section. Detailed information about installation on Linux and
Windows manually, please read build-guide.html in PECL package CUBRID for
reference.
PDO_CUBRID Features
Scrollable cursors
PDO_CUBRID supports scrollable cursors. The default cursor type is
forward only, and you can use parameter driver_options in
PDO::prepare() to change cursor type.
Timeout
PDO_CUBRID supports sql statement execution timeout setting;
You can use PDO::setAttribute() to set timeout value.
Autocommit_mode and Transaction
PDO_CUBRID supports both autocommit_mode and transaction, and
autocommit_mode is enabled by default. You can use
PDO::setAttribute() to change its state.
PDO_CUBRID supports BLOB/CLOB data type. The LOB in PDO is
represented as a stream, so you can insert LOBs by binding a stream,
and get LOBs by reading a stream returned by CUBRID PDO.
For example:
The constants below are defined by
this driver, and will only be available when the extension has been either
compiled into PHP or dynamically loaded at runtime. In addition, these
driver-specific constants should only be used if you are using this driver.
Using driver-specific attributes with another driver may result in
unexpected behaviour. PDO::getAttribute() may be used to
obtain the PDO::ATTR_DRIVER_NAME attribute to check the
driver, if your code can run against multiple drivers.
Read only. The maximum string length for bit, varbit, char,
varchar, nchar, nchar varying data types when using CUBRID PDO
API.
The following constants can be used when setting the transaction isolation
level. They can be passed to PDO::getAttribute() or
returned by PDO::setAttribute().
The lowest isolation level (1). A dirty, non-repeatable or
phantom read may occur for the tuple and a non-repeatable read may
occur for the table as well.
Get the instance method. The instance method is a method called
by a class instance. It is used more often than the class method
because most operations are executed in the instance.
Get the class method. The class method is a method called by a
class object. It is usually used to create a new class instance or to
initialize it. It is also used to access or update class
attributes.