CUBRID Functions (PDO_CUBRID)CUBRID (PDO)
&reftitle.intro;
PDO_CUBRID is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to CUBRID databases.
Current version of PDO_CUBRID doesn't support persistent connection and
lobs type now.
&reference.pdo-cubrid.configure;
Scrollable cursors
PDO_CUBRID supports scrollable cursors, and the default cursor type
is forward only. You can use PDO::setAttribute to change cursor type.
Autocommit
PDO_CUBRID supports autocommit, and it is disable by default. You can use
PDO::setAttribute to enable it.
Timeout
PDO_CUBRID supports sql statement execution timeout setting; You can use
PDO::setAttribute to set timeout value.
&reference.pdo-cubrid.constants;
PDO_CUBRID DSNConnecting to CUBRID databases
&reftitle.description;
The PDO_CUBRID Data Source Name (DSN) is composed of the following elements, delimited by semicolons:
DSN prefix
The DSN prefix is cubrid:.
host
The hostname on which the database server resides.
port
The port on which the database server is running.
dbname
The name of the database.
&reftitle.examples;
PDO_CUBRID DSN examples
The following example shows a PDO_CUBRID DSN for connecting to a CUBRID database:
&reference.pdo-cubrid.entities.functions;