+
+ PDO_CUBRID
+ Cubrid
+ PDO_DBLIBFreeTDS / Microsoft SQL Server / Sybase
@@ -64,6 +68,7 @@
+ &reference.pdo-cubrid.reference;
&reference.pdo-dblib.reference;
&reference.pdo-firebird.reference;
&reference.pdo-ibm.reference;
diff --git a/reference/pdo_cubrid/configure.xml b/reference/pdo_cubrid/configure.xml
new file mode 100644
index 0000000000..97f9a9c958
--- /dev/null
+++ b/reference/pdo_cubrid/configure.xml
@@ -0,0 +1,50 @@
+
+
+
+ &reftitle.install;
+
+ 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.
+
+
+
+
diff --git a/reference/pdo_cubrid/constants.xml b/reference/pdo_cubrid/constants.xml
new file mode 100644
index 0000000000..b3aefbf865
--- /dev/null
+++ b/reference/pdo_cubrid/constants.xml
@@ -0,0 +1,216 @@
+
+
+
+ &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_ATTR_PRIMARY_KEY
+ (integer)
+
+
+
+ Is a schema type used for PDO::cubrid_schema function.
+
+
+
+
+
+
+
diff --git a/reference/pdo_cubrid/entities.functions.xml b/reference/pdo_cubrid/entities.functions.xml
new file mode 100644
index 0000000000..2d2f5a4a3a
--- /dev/null
+++ b/reference/pdo_cubrid/entities.functions.xml
@@ -0,0 +1 @@
+&reference.pdo-cubrid.functions.PDO-cubrid-schema;
diff --git a/reference/pdo_cubrid/functions/PDO-cubrid_schema.xml b/reference/pdo_cubrid/functions/PDO-cubrid_schema.xml
new file mode 100644
index 0000000000..13e8fa1bfd
--- /dev/null
+++ b/reference/pdo_cubrid/functions/PDO-cubrid_schema.xml
@@ -0,0 +1,107 @@
+
+
+
+
+
+ PDO::cubrid_schema
+ Is used to get the requested schema information
+
+
+ &reftitle.description;
+
+ arrayPDO::cubrid_schema
+ intschema_type
+ stringtable_name
+ stringcol_name
+
+
+ The cubrid_schema function is used to get the requested schema information from database. You
+ have to designate table_name, if you want to get information on certain table,
+ col_name, if you want to get information on certain column (can be used only with
+ PDO::CUBRID_SCH_COL_PRIVILEGE).
+
+
+
+ &reftitle.parameters;
+
+
+
+ schema_type
+
+
+ Schema type that you want to know.
+
+
+
+
+ table_name
+
+
+ Table you want to know the schema of.
+
+
+
+
+ col_name
+
+
+ Column you want to know the schema of.
+
+
+
+
+
+
+
+
+ &reftitle.returnvalues;
+
+ Array containing the schema information, when process is successful;
+
+
+ FALSE, when process is unsuccessful
+
+
+
+
+ &reftitle.examples;
+
+
+ A PDO::cubrid_schema example
+
+ This example shows how to get primary keys of table game.
+
+
+cubrid_schema(PDO::CUBRID_SCH_PRIMARY_KEY, "game");
+print_r($pk_list);
+?>
+]]>
+
+
+
+
+
+
+
+
diff --git a/reference/pdo_cubrid/reference.xml b/reference/pdo_cubrid/reference.xml
new file mode 100644
index 0000000000..623f01bdd2
--- /dev/null
+++ b/reference/pdo_cubrid/reference.xml
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+ 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 DSN
+ Connecting 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;
+
+
+
+