CUBRID Functions (PDO_CUBRID)

Introduction

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.

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 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.

A DLL for this PECL extension is currently unavailable. See also the building on Windows section.

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.

Predefined Constants

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.

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


Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout