diff --git a/reference/pdo_cubrid/configure.xml b/reference/pdo_cubrid/configure.xml index b3975f4197..3a546d0a70 100644 --- a/reference/pdo_cubrid/configure.xml +++ b/reference/pdo_cubrid/configure.xml @@ -5,26 +5,23 @@ 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 to install the PDO_CUBRID extension. Issue the configure command to point to the location of your CUBRID base dir as follows: The configure command defaults to the value of the CUBRID environment variable. - &pecl.windows.download; - - - Information about installation on Linux and Windows manually, please read - build-guide.html in PECL package CUBRID for reference. + &pecl.windows.download; Detailed information about installation on Linux and + Windows manually, please read build-guide.html in PECL package CUBRID for + reference. diff --git a/reference/pdo_cubrid/constants.xml b/reference/pdo_cubrid/constants.xml index f54d055995..41df437e2d 100644 --- a/reference/pdo_cubrid/constants.xml +++ b/reference/pdo_cubrid/constants.xml @@ -3,195 +3,107 @@
&reftitle.constants; &pdo.driver-constants; - - - - 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. - - - - + + The following constants can be used when getting schema information. They + can be passed to PDO::cubrid_schema. + + CUBRID schema flags + + + + Constant + Description + + + + + CUBRID_SCH_TABLE + Get name and type of table in CUBRID. + + + CUBRID_SCH_VIEW + Get name and type of view in CUBRID. + + + CUBRID_SCH_QUERY_SPEC + Get the query definition of view. + + + CUBRID_SCH_ATTRIBUTE + Get the attributes of table column. + + + CUBRID_SCH_TABLE_ATTRIBUTE + Get the attributes of table. + + + CUBRID_SCH_METHOD + 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. + + + CUBRID_SCH_TABLE_METHOD + 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. + + + CUBRID_SCH_METHOD_FILE + Get the information of the file where the method of the table is + defined. + + + CUBRID_SCH_SUPER_TABLE + Get the name and type of table which table inherites attributes + from. + + + CUBRID_SCH_SUB_TABLE + Get the name and type of table which inherites attributes from + this table. + + + CUBRID_SCH_CONSTRAINT + Get the table constraints. + + + CUBRID_SCH_TRIGGER + Get the table triggers. + + + CUBRID_SCH_TABLE_PRIVILEGE + Get the privilege information of table. + + + CUBRID_SCH_COL_PRIVILEGE + Get the privilege information of column. + + + CUBRID_SCH_DIRECT_SUPER_TABLE + Get the direct super table of table. + + + CUBRID_SCH_PRIMARY_KEY + Get the table primary key. + + + CUBRID_SCH_IMPORTED_KEYS + Get imported keys of table. + + + CUBRID_SCH_EXPORTED_KEYS + Get exported keys of table. + + + CUBRID_SCH_CROSS_REFERENCE + Get reference relationship of tow tables. + + + +
+
&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. - +
+ Features + + PDO_CUBRID Features + + + + Feature + Description + + + + + 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 enable by default. You can use + PDO::setAttribute to change its state. + + + If you use PDO::beginTransaction to begin a transaction, it will + disable autocommit_mode and restore it after PDO::commit or + PDO::rollBack. Note that before disabling the autocommit_mode, any + pending work is automatically committed. + + + + + Multiple Query + PDO_CUBRID supports multiple query. + + + Schema Information + PDO_CUBRID doesn't implement PDOStatement->getColumnMeta. + Instead, PDO_CUBRID implements a function + PDO::cubrid_schema to get schema information. + + + + LOBs + 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: + + + Insert LOBs in CUBRID PDO + +prepare($sql_stmt); +$ret = $stmt->bindParam(1, $fp, PDO::PARAM_LOB); +$ret = $stmt->execute(); +?> +]]> + + + + + Fetch LOBs in CUBRID PDO + +prepare($sql_stmt); +$stmt->execute(); +$result = $stmt->fetch(PDO::FETCH_NUM); + +header("Content-Type: image/png"); +fpassthru($result[0]); +?> +]]> + + + + + + + +