PDO Drivers
PHP Manual

CUBRID Functions (PDO_CUBRID)

简介

PDO_CUBRID is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to CUBRID databases.

Note:

Current version of PDO_CUBRID doesn't support persistent connection and lobs type now.

安装

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 PECL 扩展库安装 to install the PDO_CUBRID extension. Issue the configure command to point to the location of your CUBRID base dir as follows:

   bash$ ./configure --with-pdo-cubrid=/path/to/CUBRID[,shared]
The configure command defaults to the value of the CUBRID environment variable.

PECL 扩展的 DLL 当前不可用。参见 在 Windows 上构建 章节。

Information about installation on Linux and Windows manually, please read build-guide.html in PECL package CUBRID for reference.

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.

预定义常量

下列常量由此驱动定义,且仅在扩展编译入 PHP 或在运行时动态载入时可用。另外,使用此驱动时,仅会使用这些驱动特定的常量。使用其他驱动的驱动特定的常量可能会导致不可预见的情况。 如果代码可运行于多个驱动,PDO::getAttribute() 可被用于获取 PDO_ATTR_DRIVER_NAME 属性以检查驱动。

PDO::CUBRID_INCLUDE_OID (integer)
Is used to determine whether to get OID after query execution.
PDO::CUBRID_SCH_TABLE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_VIEW (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_QUERY_SPEC (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_ATTRIBUTE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_TABLE_ATTRIBUTE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_METHOD (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_TABLE_METHOD (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_METHOD_FILE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_SUPER_TABLE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_SUB_TABLE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_CONSTRAINT (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_TRIGGER (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_TABLE_PRIVILEGE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_COL_PRIVILEGE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_DIRECT_SUPER_TABLE (integer)

Is a schema type used for PDO::cubrid_schema function.

PDO::CUBRID_SCH_PRIMARY_KEY (integer)

Is a schema type used for PDO::cubrid_schema function.

Table of Contents


PDO Drivers
PHP Manual