cvs: phpdoc-pl /reference/pgsql/functions pg-copy-to.xml pg-dbname.xml pg-result-status.xml

From: Date: Sat, 10 May 2008 11:35:12 +0000
Subject: cvs: phpdoc-pl /reference/pgsql/functions pg-copy-to.xml pg-dbname.xml pg-result-status.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1374@lists.php.net to get a copy of this message
adi Sat May 10 11:35:12 2008 UTC Modified files: /phpdoc-pl/reference/pgsql/functions pg-copy-to.xml pg-dbname.xml pg-result-status.xml Log: Update

http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml Sat May 10 11:35:12 2008 @@ -1,50 +1,131 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id='function.pg-copy-to' xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_copy_to</refname> - <refpurpose> - Kopiuje tabele do tablicy - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>int</type><methodname>pg_copy_to</methodname> - <methodparam><type>int</type><parameter>connection</parameter></methodparam> - <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>null_as</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_copy_to</function> kopiuje tabele to tablicy. Zwracana jest tablica wynikowa - lub &false; w razie niepowodzenia. - </para> - <para> - Zobacz tak¿e <function>pg_copy_from</function> - </para> - </refsect1> - </refentry> - -<!-- 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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.10 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id='function.pg-copy-to' xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_copy_to</refname> + <refpurpose> + Kopiuje tabelê do tablicy + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>pg_copy_to</methodname> + <methodparam><type>resource</type><parameter>polaczenie</parameter></methodparam> + <methodparam><type>string</type><parameter>nazwa_tabeli</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>separator</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>null_jako</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_copy_to</function> kopiuje tabelê do tablicy. Wywo³uje + to wewnêtrzne polecenie SQL <literal>COPY TO</literal> na + wydobywane rekordy. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do serwera PostgreSQL. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>nazwa_tabeli</parameter></term> + <listitem> + <para> + Nazwa tabeli, z której zostan± skopiowane dane do zmiennej <parameter>wiersze</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>separator</parameter></term> + <listitem> + <para> + Znak oddzielaj±cy warto¶ci dla ka¿dego pola ka¿dego elementu zmiennej + <parameter>wiersze</parameter>. Domy¶lnie jest to <literal>TAB</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>null_jako</parameter></term> + <listitem> + <para> + Jak warto¶ci <literal>NULL</literal> z SQL s± przedstawiane w zmiennej + <parameter>wiersze</parameter>. Domy¶lnie jest to \N ("\\N"). + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Tablica (ang. <type>array</type>) z jednym elementem dla ka¿dej linii kopiowanych (<literal>COPY</literal>) danych. + Zwraca &false; w przypadku b³êdu. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_copy_to</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $baza = pg_connect("dbname=wydawca") or die("Nie mo¿na siê po³±czyæ"); + + $wiersze = pg_copy_to($baza, $nazwa_tabeli); + + pg_query($baza, "DELETE FROM $nazwa_tabeli"); + + pg_copy_from($baza, $nazwa_tabeli, $wiersze); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_copy_from</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- 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-pl/reference/pgsql/functions/pg-dbname.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-dbname.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-dbname.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-dbname.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-dbname.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-dbname.xml Sat May 10 11:35:12 2008 @@ -1,44 +1,91 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-dbname" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_dbname</refname> - <refpurpose>Podaje nazwê bazy danych</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>pg_dbname</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_dbname</function> zwraca nazwê bazy danych dla podanego - identyfikatora po³±czenia (<parameter>connection</parameter>) - Zwraca &false;, je¶li <parameter>connection</parameter> - nie jest poprawnym identyfikatorem po³±czenia. - </para> - </refsect1> - </refentry> - -<!-- 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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.8 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-dbname" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_dbname</refname> + <refpurpose>Podaje nazwê bazy danych</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>pg_dbname</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_dbname</function> zwraca nazwê bazy danych dla + podanego identyfikatora po³±czenia + (<parameter>polaczenie</parameter>). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy PostgreSQL. Gdy nie podano parametru + <parameter>polaczenie</parameter>, domy¶lne po³±czenie + jest u¿yte. Domy¶lnym po³±czeniem jest ostatnie po³±czenie stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + £añcuch (ang. <type>string</type>) zawieraj±cy nazwê bazy danych, do której + <parameter>polaczenie</parameter> jest nawi±zane, lub &false; w przypadku b³êdu. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_dbname</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + error_reporting(E_ALL); + + pg_connect("host=localhost port=5432 dbname=mary"); + echo pg_dbname(); // mary +?> +]]> + </programlisting> + </example> + </para> + </refsect1> +</refentry> + +<!-- 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-pl/reference/pgsql/functions/pg-result-status.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-result-status.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-result-status.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-result-status.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-result-status.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-result-status.xml Sat May 10 11:35:12 2008 @@ -1,49 +1,157 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> - <refentry xml:id='function.pg-result-status' xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_result_status</refname> - <refpurpose> - Zwraca stan wyniku - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>int</type><methodname>pg_result_status</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_result_status</function> zwraca stan wyniku. Mo¿liwe warto¶ci - to PGSQL_EMPTY_QUERY, PGSQL_COMMAND_OK, PGSQL_TUPLES_OK, PGSQL_COPY_TO, - PGSQL_COPY_FROM, PGSQL_BAD_RESPONSE, PGSQL_NONFATAL_ERROR i - PGSQL_FATAL_ERROR. - </para> - <para> - Zobacz tak¿e <function>pg_connection_status</function>. - </para> - </refsect1> - </refentry> - -<!-- 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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.11 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> +<!-- CREDITS: jarek --> +<refentry xml:id='function.pg-result-status' xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_result_status</refname> + <refpurpose> + Zwraca stan wyniku zapytania + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>pg_result_status</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>typ</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_result_status</function> zwraca stan identyfikatora wyniku, + lub oznaczenie dope³nienia komendy, zwi±zane z wynikiem + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>wynik</parameter></term> + <listitem> + <para> + Identyfikator wyniku zapytania PostgreSQL-a, zwrócony przez <function>pg_query</function>, + <function>pg_query_params</function> lub <function>pg_execute</function> + (miêdzy innymi). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>typ</parameter></term> + <listitem> + <para> + Zarówno <constant>PGSQL_STATUS_LONG</constant> aby zwróciæ liczbowy stan + parametru <parameter>wynik</parameter>, jak i <constant>PGSQL_STATUS_STRING</constant> + aby zwróciæ oznaczenie parametru <parameter>wynik</parameter>. + Je¶li nie podano, <constant>PGSQL_STATUS_LONG</constant> zostanie domy¶lnie u¿yte. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Mo¿liwe zwracane warto¶ci to: <constant>PGSQL_EMPTY_QUERY</constant>, + <constant>PGSQL_COMMAND_OK</constant>, <constant>PGSQL_TUPLES_OK</constant>, <constant>PGSQL_COPY_OUT</constant>, + <constant>PGSQL_COPY_IN</constant>, <constant>PGSQL_BAD_RESPONSE</constant>, <constant>PGSQL_NONFATAL_ERROR</constant> oraz + <constant>PGSQL_FATAL_ERROR</constant> gdy okre¶lono <constant>PGSQL_STATUS_LONG</constant>. + W przeciwnym wypadku ³añcuch (ang. <type>string</type>) zawieraj±cy oznaczenie komendy PostgreSQL-a jest zwracany. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.0</entry> + <entry> + Parametr <parameter>typ</parameter> zosta³ dodany. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_result_status</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Po³±cz siê z baz± +$polaczenie = pg_pconnect("dbname=wydawca"); + +// Wykonaj COPY +$wynik = pg_query($polaczenie, "COPY autorzy FROM STDIN;"); + +// Pobierz stan wyniku +$stan = pg_result_status($wynik); + +// Ustal stan +if ($stan == PGSQL_COPY_IN) + echo "Kopiowanie rozpoczê³o siê."; +else + echo "Kopiowanie nie powiod³o siê."; + +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Kopiowanie rozpoczê³o siê. +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_connection_status</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- 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.pl (#1374) next »