cvs: phpdoc-ru /reference/pgsql book.xml configure.xml entities.functions.xml examples.xml ini.xml reference.xml setup.xml

From: Date: Sat, 21 Jun 2008 15:19:44 +0000
Subject: cvs: phpdoc-ru /reference/pgsql book.xml configure.xml entities.functions.xml examples.xml ini.xml reference.xml setup.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-974@lists.php.net to get a copy of this message
santiago Sat Jun 21 15:19:44 2008 UTC Added files: /phpdoc-ru/reference/pgsql book.xml configure.xml entities.functions.xml examples.xml ini.xml reference.xml setup.xml Log: added russian translation for PostgreSQL

http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/book.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/book.xml +++ phpdoc-ru/reference/pgsql/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> <book xml:id="book.pgsql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PostgreSQL</title> <!-- {{{ preface --> <preface xml:id="intro.pgsql"> &reftitle.intro; <para> База данных PostgreSQL - это свободно доступный продукт с открытым исходным кодом. Изначально Postgres разрабатывался в Университете Компьютерных Наук Беркли и был пионером многих объектно-реляционных идей, которые на данный момент доступны в некоторых коммерческих базах данных. В частности, это поддержка языка SQL92/SQL99, транзакции, ссылочная целостность, хранимые процедуры и расширение типов. PostgreSQL - это потомок с открытым исходным кодом своего первоисточника из Беркли. </para> </preface> <!-- }}} --> &reference.pgsql.setup; &reference.pgsql.constants; &reference.pgsql.examples; &reference.pgsql.reference; </book> <!-- 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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/configure.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/configure.xml +++ phpdoc-ru/reference/pgsql/configure.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <section xml:id="pgsql.installation" xmlns="http://docbook.org/ns/docbook"> &reftitle.install; <para> Для того, чтобы включить поддержку PostgreSQL необходимо скомпилировать PHP с директивой <option role="configure">--with-pgsql[=DIR]</option>. Параметр DIR определяет путь к основной директории PostgreSQL, по умолчанию это <filename>/usr/local/pgsql</filename>. Если доступен динамический модуль, то он может быть загружен используя директиву <link linkend="ini.extension">extension</link> в &php.ini;, либо функцию <function>dl</function>. </para> </section> <!-- 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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/entities.functions.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/entities.functions.xml +++ phpdoc-ru/reference/pgsql/entities.functions.xml &reference.pgsql.functions.pg-affected-rows; &reference.pgsql.functions.pg-cancel-query; &reference.pgsql.functions.pg-client-encoding; &reference.pgsql.functions.pg-close; &reference.pgsql.functions.pg-connect; &reference.pgsql.functions.pg-connection-busy; &reference.pgsql.functions.pg-connection-reset; &reference.pgsql.functions.pg-connection-status; &reference.pgsql.functions.pg-convert; &reference.pgsql.functions.pg-copy-from; &reference.pgsql.functions.pg-copy-to; &reference.pgsql.functions.pg-dbname; &reference.pgsql.functions.pg-delete; &reference.pgsql.functions.pg-end-copy; &reference.pgsql.functions.pg-escape-bytea; &reference.pgsql.functions.pg-escape-string; &reference.pgsql.functions.pg-execute; &reference.pgsql.functions.pg-fetch-all-columns; &reference.pgsql.functions.pg-fetch-all; &reference.pgsql.functions.pg-fetch-array; &reference.pgsql.functions.pg-fetch-assoc; &reference.pgsql.functions.pg-fetch-object; &reference.pgsql.functions.pg-fetch-result; &reference.pgsql.functions.pg-fetch-row; &reference.pgsql.functions.pg-field-is-null; &reference.pgsql.functions.pg-field-name; &reference.pgsql.functions.pg-field-num; &reference.pgsql.functions.pg-field-prtlen; &reference.pgsql.functions.pg-field-size; &reference.pgsql.functions.pg-field-table; &reference.pgsql.functions.pg-field-type-oid; &reference.pgsql.functions.pg-field-type; &reference.pgsql.functions.pg-free-result; &reference.pgsql.functions.pg-get-notify; &reference.pgsql.functions.pg-get-pid; &reference.pgsql.functions.pg-get-result; &reference.pgsql.functions.pg-host; &reference.pgsql.functions.pg-insert; &reference.pgsql.functions.pg-last-error; &reference.pgsql.functions.pg-last-notice; &reference.pgsql.functions.pg-last-oid; &reference.pgsql.functions.pg-lo-close; &reference.pgsql.functions.pg-lo-create; &reference.pgsql.functions.pg-lo-export; &reference.pgsql.functions.pg-lo-import; &reference.pgsql.functions.pg-lo-open; &reference.pgsql.functions.pg-lo-read-all; &reference.pgsql.functions.pg-lo-read; &reference.pgsql.functions.pg-lo-seek; &reference.pgsql.functions.pg-lo-tell; &reference.pgsql.functions.pg-lo-unlink; &reference.pgsql.functions.pg-lo-write; &reference.pgsql.functions.pg-meta-data; &reference.pgsql.functions.pg-num-fields; &reference.pgsql.functions.pg-num-rows; &reference.pgsql.functions.pg-options; &reference.pgsql.functions.pg-parameter-status; &reference.pgsql.functions.pg-pconnect; &reference.pgsql.functions.pg-ping; &reference.pgsql.functions.pg-port; &reference.pgsql.functions.pg-prepare; &reference.pgsql.functions.pg-put-line; &reference.pgsql.functions.pg-query-params; &reference.pgsql.functions.pg-query; &reference.pgsql.functions.pg-result-error-field; &reference.pgsql.functions.pg-result-error; &reference.pgsql.functions.pg-result-seek; &reference.pgsql.functions.pg-result-status; &reference.pgsql.functions.pg-select; &reference.pgsql.functions.pg-send-execute; &reference.pgsql.functions.pg-send-prepare; &reference.pgsql.functions.pg-send-query-params; &reference.pgsql.functions.pg-send-query; &reference.pgsql.functions.pg-set-client-encoding; &reference.pgsql.functions.pg-set-error-verbosity; &reference.pgsql.functions.pg-trace; &reference.pgsql.functions.pg-transaction-status; &reference.pgsql.functions.pg-tty; &reference.pgsql.functions.pg-unescape-bytea; &reference.pgsql.functions.pg-untrace; &reference.pgsql.functions.pg-update; &reference.pgsql.functions.pg-version; http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/examples.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/examples.xml +++ phpdoc-ru/reference/pgsql/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <chapter xml:id="pgsql.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <section xml:id="pgsql.examples-basic"> <para> Это простой пример соединения, выполнения запроса, вывода результата и закрытия соединения с базой данной PostgreSQL. <example> <title>Общий пример работы с расширением PostgreSQL</title> <programlisting role="php"> <![CDATA[ <?php // Соединение, выбор базы данных $dbconn = pg_connect("host=localhost dbname=publishing user=www password=foo") or die('Could not connect: ' . pg_last_error()); // Выполнение SQL запроса $query = 'SELECT * FROM authors'; $result = pg_query($query) or die('Query failed: ' . pg_last_error()); // Вывод результатов в HTML echo "<table>\n"; while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; // Очистка результата pg_free_result($result); // Закрытие соединения pg_close($dbconn); ?> ]]> </programlisting> </example> </para> </section> </chapter> <!-- 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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/ini.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/ini.xml +++ phpdoc-ru/reference/pgsql/ini.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <section xml:id="pgsql.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Директивы конфигурации PostgreSQL</title> <tgroup cols="4"> <thead> <row> <entry>Имя</entry> <entry>Значение по умолчанию</entry> <entry>Область изменения</entry> <entry>Changelog</entry> </row> </thead> <tbody> <row> <entry>pgsql.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>pgsql.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>pgsql.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>pgsql.auto_reset_persistent</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry>Доступна с PHP 4.2.0.</entry> </row> <row> <entry>pgsql.ignore_notice</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry>Доступна с PHP 4.3.0.</entry> </row> <row> <entry>pgsql.log_notice</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry>Доступна с PHP 4.3.0.</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry xml:id="ini.pgsql.allow-persistent"> <term> <parameter>pgsql.allow_persistent</parameter> <type>boolean</type> </term> <listitem> <para> Разрешить постоянное соединение с Postgres. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.pgsql.max-persistent"> <term> <parameter>pgsql.max_persistent</parameter> <type>integer</type> </term> <listitem> <para> Максимальное количество постоянных соединений на один процесс. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.pgsql.max-links"> <term> <parameter>pgsql.max_links</parameter> <type>integer</type> </term> <listitem> <para> Максимальное количество соединений Postgres на один процесс, включая постоянный соединения. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.pgsql.auto-reset-persistent"> <term> <parameter>pgsql.auto_reset_persistent</parameter> <type>integer</type> </term> <listitem> <para> Определять разорванные постоянные ссылки с <function>pg_pconnect</function>. Требуются небольшие дополнительные ресурсы. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.pgsql.ignore-notice"> <term> <parameter>pgsql.ignore_notice</parameter> <type>integer</type> </term> <listitem> <para> Игнорировать или нет уведомления от PostgreSQL. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.pgsql.log-notice"> <term> <parameter>pgsql.log_notice</parameter> <type>integer</type> </term> <listitem> <para> Записывать в лог или нет уведомления от PostgreSQL. Директива PHP <link linkend="ini.pgsql.ignore-notice"> pgsql.ignore_notice</link> должна быть иметь значение off для того, чтобы записывать в лог сообщения. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/reference.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/reference.xml +++ phpdoc-ru/reference/pgsql/reference.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="ref.pgsql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PostgreSQL &Functions;</title> <partintro> <section xml:id="pgsql.notes"> &reftitle.notes; <note> <para> Не все функции могут поддерживаться в собранном модуле. Это зависит от версии вашей libpq (клиентская библиотека PostgreSQL) и как libpq была собрана. Если расширение PostgreSQL для PHP отсутствует, то это значит, что версия вашей libpq не поддерживается. </para> </note> <note> <para> Большинство функций PostgreSQL принимают <parameter>connection</parameter> в качестве первого необязательного параметра. Если параметр отсутствует, то используется последнее открытое соединение. Если же такого не существует, то функция возвращает &false;. </para> </note> <note> <para> PostgreSQL автоматически переводит все идентификаторы (такие, как имена таблиц/столбцов) в нижний регистр во время создания объекта и выполнения запроса. Для того, чтобы заставить использовать идентификаторы в обоих или только в верехнем регистрах, вы должны экранировать идентификатор через двойные кавычки (""). </para> </note> <note> <para> В PostgreSQL нет специальных команд для выбора информации о схеме (к примеру, все таблицы выбранной базы данных). Но вместо этого в версиях PostgreSQL 7.4 и выше существует стандартная схема, которая называется <literal>information_schema</literal>. Она содержит системные представления (view) со всей необходимой информацией в легко доступной форме. Для дополнительной информации см. <link xlink:href="&url.pgsql.manual;">PostgreSQL Documentation</link> </para> </note> </section> </partintro> &reference.pgsql.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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-ru/reference/pgsql/setup.xml?view=markup&rev=1.1 Index: phpdoc-ru/reference/pgsql/setup.xml +++ phpdoc-ru/reference/pgsql/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <chapter xml:id="pgsql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="pgsql.requirements"> &reftitle.required; <para> Для того, чтобы иметь возможность использовать PostgreSQL, у вас должен быть установлен PostgreSQL версии 6.5 или выше, либо PostgreSQL версии 8.0 для использования всех особенностей модуля PostgreSQL. PostgreSQL имеет поддержку различных кодировок символов, включая мультибайтовую кодировку. Последняя версия и полная информация о PostgreSQL доступна на <link xlink:href="&url.pgsql;">&url.pgsql;</link> и <link xlink:href="&url.pgsql.manual;">документация PostgreSQL</link>. </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.pgsql.configure; <!-- }}} --> <!-- {{{ Configuration --> &reference.pgsql.ini; <!-- }}} --> <!-- {{{ Resources --> <section xml:id="pgsql.resources"> &reftitle.resources; <para> Существует два типа ресурсов используемых в модуле PostgreSQL. Первый из них представляет собой идентификатор соединения с базой данной, второй ресурсов необходим для хранения результата запроса. </para> </section> <!-- }}} --> </chapter> <!-- 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:"../../../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 -->
« previous php.doc.ru (#974) next »