mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
update docs for CUBRID PHP 2008 R4.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310532 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
79069a88f1
commit
0748b3b2d2
2 changed files with 115 additions and 7 deletions
|
@ -3,6 +3,91 @@
|
|||
<section xml:id="pdo-cubrid.constants" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.constants;
|
||||
&pdo.driver-constants;
|
||||
<para>
|
||||
The following constants can be used when setting the database attribute.
|
||||
They can be passed to <function>PDO::getAttribute</function> or
|
||||
<function>PDO::setAttribute</function>.
|
||||
<table>
|
||||
<title>PDO::CUBRID attribute flags</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Constant</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>PDO::CUBRID_ATTR_ISOLATION_LEVEL</entry>
|
||||
<entry>Transaction isolation level for the database connection.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::CUBRID_ATTR_LOCK_TIMEOUT</entry>
|
||||
<entry>Transaction timeout in seconds.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::CUBRID_ATTR_MAX_STRING_LENGTH</entry>
|
||||
<entry>Read only. The maximum string length for bit, varbit, char,
|
||||
varchar, nchar, nchar varying data types when using CUBRID PDO
|
||||
API.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The following constants can be used when setting the transaction isolation
|
||||
level. They can be passed to <function>PDO::getAttribute</function> or
|
||||
returned by <function>PDO::setAttribute</function>.
|
||||
<table>
|
||||
<title>PDO::CUBRID isolation level flags</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Constant</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE</entry>
|
||||
<entry>The lowest isolation level (1). A dirty, non-repeatable or
|
||||
phantom read may occur for the tuple and a non-repeatable read may
|
||||
occur for the table as well.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCE</entry>
|
||||
<entry>A relatively low isolation level (2). A dirty read does not
|
||||
occur, but non-repeatable or phantom read may occur.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCE</entry>
|
||||
<entry>The default isolation of CUBRID (3). A dirty, non-repeatable or
|
||||
phantom read may occur for the tuple, but repeatable read is ensured
|
||||
for the table.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::TRAN_REP_CLASS_COMMIT_INSTANCE</entry>
|
||||
<entry>A relatively low isolation level (4). A dirty read does not
|
||||
occur, but non-repeatable or phantom read may.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::TRAN_REP_CLASS_REP_INSTANCE</entry>
|
||||
<entry>A relatively high isolation level (5). A dirty or non-repeatable
|
||||
read does not occur, but a phantom read may.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PDO::TRAN_SERIALIZABLE</entry>
|
||||
<entry>The highest isolation level (6). Problems concerning concurrency
|
||||
(e.g. dirty read, non-repeatable read, phantom read, etc.) do not
|
||||
occur.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The following constants can be used when getting schema information. They
|
||||
can be passed to <function>PDO::cubrid_schema</function>.
|
||||
|
|
|
@ -53,14 +53,15 @@
|
|||
<entry>Autocommit_mode and Transaction</entry>
|
||||
<entry>
|
||||
PDO_CUBRID supports both autocommit_mode and transaction, and
|
||||
autocommit_mode is enable by default. You can use
|
||||
autocommit_mode is disabled by default. You can use
|
||||
<function>PDO::setAttribute</function> to change its state.
|
||||
|
||||
<para>
|
||||
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.
|
||||
If you use <function>PDO::beginTransaction</function> to begin a
|
||||
transaction, it will disable autocommit_mode automatically and
|
||||
restore it after <function>PDO::commit</function> or
|
||||
<function>PDO::rollBack</function>. Note that before disabling the
|
||||
autocommit_mode, any pending work is automatically committed.
|
||||
</para>
|
||||
</entry>
|
||||
</row>
|
||||
|
@ -71,8 +72,7 @@
|
|||
</row>
|
||||
<row>
|
||||
<entry>Schema Information</entry>
|
||||
<entry>PDO_CUBRID doesn't implement PDOStatement->getColumnMeta.
|
||||
Instead, PDO_CUBRID implements a function
|
||||
<entry>PDO_CUBRID implements a function
|
||||
<function>PDO::cubrid_schema</function> to get schema information.
|
||||
</entry>
|
||||
</row>
|
||||
|
@ -119,6 +119,29 @@ fpassthru($result[0]);
|
|||
</para>
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>Column meta</entry>
|
||||
<entry>
|
||||
The <function>PDOStatement::getColumnMeta</function> in CUBRID PDO
|
||||
will return an associative array containing the following values:
|
||||
<simplelist>
|
||||
<member>type</member>
|
||||
<member>name</member>
|
||||
<member>table</member>
|
||||
<member>def</member>
|
||||
<member>precision</member>
|
||||
<member>scale</member>
|
||||
<member>not_null</member>
|
||||
<member>auto_increment</member>
|
||||
<member>unique_key</member>
|
||||
<member>multiple_key</member>
|
||||
<member>primary_key</member>
|
||||
<member>foreign_key</member>
|
||||
<member>reverse_index</member>
|
||||
<member>reverse_unique</member>
|
||||
</simplelist>
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue