php-doc-en/reference/pdo_cubrid/reference.xml

143 lines
3.8 KiB
XML
Raw Normal View History

<?xml version='1.0' encoding="utf-8"?>
<!-- $Revision: 297816 $ -->
<!-- Purpose: database.vendors -->
<!-- Membership: bundled, external, pecl -->
<reference xml:id="ref.pdo-cubrid" xmlns="http://docbook.org/ns/docbook">
<title>CUBRID Functions (PDO_CUBRID)</title>
<titleabbrev>CUBRID (PDO)</titleabbrev>
<partintro>
<section xml:id="pdo-cubrid.intro">
&reftitle.intro;
<para>
PDO_CUBRID is a driver that implements the <link linkend="intro.pdo">PHP Data Objects (PDO) interface</link> to
enable access from PHP to CUBRID databases.
</para>
<note>
<para>
Current version of PDO_CUBRID doesn't support persistent connection and
lobs type now.
</para>
</note>
</section>
<!-- Information found in configure.xml -->
&reference.pdo-cubrid.configure;
<section xml:id="ref.pdo-cubrid.features.cursors">
<title>Scrollable cursors</title>
<para>
PDO_CUBRID supports scrollable cursors, and the default cursor type
is forward only. You can use PDO::setAttribute to change cursor type.
</para>
</section>
<section xml:id="ref.pdo-cubrid.features.autocommit">
<title>Autocommit</title>
<para>
PDO_CUBRID supports autocommit, and it is disable by default. You can use
PDO::setAttribute to enable it.
</para>
</section>
<section xml:id="ref.pdo-cubrid.features.timeout">
<title>Timeout</title>
<para>
PDO_CUBRID supports sql statement execution timeout setting; You can use
PDO::setAttribute to set timeout value.
</para>
</section>
<!-- Information found in constants.xml -->
&reference.pdo-cubrid.constants;
</partintro>
<refentry xml:id="ref.pdo-cubrid.connection">
<refnamediv>
<refname>PDO_CUBRID DSN</refname>
<refpurpose>Connecting to CUBRID databases</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
The PDO_CUBRID Data Source Name (DSN) is composed of the following elements, delimited by semicolons:
<variablelist>
<varlistentry>
<term>DSN prefix</term>
<listitem>
<para>
The DSN prefix is <userinput>cubrid:</userinput>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>host</constant></term>
<listitem>
<para>
The hostname on which the database server resides.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>port</constant></term>
<listitem>
<para>
The port on which the database server is running.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>dbname</constant></term>
<listitem>
<para>
The name of the database.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>PDO_CUBRID DSN examples</title>
<para>
The following example shows a PDO_CUBRID DSN for connecting to a CUBRID database:
<programlisting><![CDATA[
cubrid:host=localhost;port=33000;dbname=demodb
]]>
</programlisting>
</para>
</example>
</para>
</refsect1>
</refentry>
&reference.pdo-cubrid.entities.functions;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->