hirokawa Sat Apr 20 22:02:21 2002 EDT Added files: /phpdoc/ja/reference/pgsql/functions pg-convert.xml pg-field-is-null.xml pg-field-name.xml pg-field-prtlen.xml pg-field-size.xml pg-field-type.xml pg-free-result.xml pg-insert.xml pg-last-error.xml pg-last-oid.xml pg-lo-close.xml pg-lo-create.xml pg-lo-export.xml pg-lo-import.xml pg-lo-open.xml pg-lo-read-all.xml pg-lo-read.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml pg-num-fields.xml pg-num-rows.xml pg-select.xml
Modified files: /phpdoc/ja/reference/pgsql/functions pg-cancel-query.xml Log: added renamed functions of pgsql in japanese manual.
Index: phpdoc/ja/reference/pgsql/functions/pg-cancel-query.xml diff -u phpdoc/ja/reference/pgsql/functions/pg-cancel-query.xml:1.1 phpdoc/ja/reference/pgsql/functions/pg-cancel-query.xml:1.2 --- phpdoc/ja/reference/pgsql/functions/pg-cancel-query.xml:1.1 Sun Apr 14 21:13:48 2002 +++ phpdoc/ja/reference/pgsql/functions/pg-cancel-query.xml Sat Apr 20 22:02:20 +2002 @@ -1,31 +1,32 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.31 --> <!-- last change to 'pg-cancel-query' in en/ tree in rev 1.61 --> - <refentry id='function.pg-cancel-query'> - <refnamediv> - <refname>pg_cancel_query</refname> - <refpurpose> - 同期クエリを取り消す - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>pg_cancel_query</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_cancel_query</function> cancel asynchronous query sent by - <function>pg_send_query</function>. You cannot cancel query executed by - <function>pg_query</function>. - </para> - <para> - See also <function>pg_send_query</function>, - <function>pg_cancel_result</function> and - <function>pg_connection_busy</function> - </para> - </refsect1> - </refentry> +<refentry id='function.pg-cancel-query'> + <refnamediv> + <refname>pg_cancel_query</refname> + <refpurpose> + 同期クエリを取り消す + </refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <methodsynopsis> + <type>bool</type><methodname>pg_cancel_query</methodname> + <methodparam><type>resource</type><parameter>connection</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_cancel_query</function>は、 + <function>pg_send_query</function>により送信された同期クエリをキャ + +ンセルします。<function>pg_query</function>により実行されたクエリを + キャンセルすることはできません。 + </para> + <para> + <function>pg_send_query</function>, + <function>pg_cancel_result</function>, + <function>pg_connection_busy</function>も参照下さい。 + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: Index: phpdoc/ja/reference/pgsql/functions/pg-convert.xml +++ phpdoc/ja/reference/pgsql/functions/pg-convert.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-convert'> <refnamediv> <refname>pg_convert</refname> <refpurpose> SQL命令として実行可能な形式の連想配列の値に変換する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>array</type><methodname>pg_convert</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> </methodsynopsis> <para> <function>pg_convert</function>はチェックし、SQL命令として実行可能 な形式の<literal>assoc_array</literal>に変換します。 </para> <note> <para> この関数は実験的な関数です。 </para> </note> <para> <function>pg_metadata</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-field-is-null.xml +++ phpdoc/ja/reference/pgsql/functions/pg-field-is-null.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-field-is-null"> <refnamediv> <refname>pg_field_is_null</refname> <refpurpose>フィールドが&null;かどうか調べる</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_field_is_null</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_is_null</function>は、フィールドが&null;かどうか 調べます。rowで指定した行のフィールドが&null;でない場合は0を返し、 &null;だった場合は1を返します。fieldはカラム番号(数値)またはフィー ルド名(文字列)で指定します。rowの番号付けは0から始まります。 </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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-field-name.xml +++ phpdoc/ja/reference/pgsql/functions/pg-field-name.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-field-name"> <refnamediv> <refname>pg_field_name</refname> <refpurpose>フィールドの名前を返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>pg_field_name</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_name</function>は、指定したPostgreSQL <parameter>result</parameter>リソースの指定した <parameter>field_number</parameter>にあるフィールドの名前を返 します。フィールド番号は0から始まります。 </para> <para> <function>pg_field_num</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-field-prtlen.xml +++ phpdoc/ja/reference/pgsql/functions/pg-field-prtlen.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-field-prtlen"> <refnamediv> <refname>pg_field_prtlen</refname> <refpurpose>表示される長さを返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_field_prtlen</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row_number</parameter></methodparam> <methodparam><type>string</type><parameter>field_name</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_prtlen</function>は、PostgreSQLの <parameter>result</parameter>の指定した値に関して実際に表示した場 合の長さ(文字の数)を返します。行番号(row_number)は0から始まります。 この関数は、エラーの場合に-1を返します。 </para> <para> <function>pg_field_size</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-field-size.xml +++ phpdoc/ja/reference/pgsql/functions/pg-field-size.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-field-size"> <refnamediv> <refname>pg_field_size</refname> <refpurpose> 指定したフィールドの内部記憶領域におけるサイズを返す </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_field_size</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_size</function>は、指定したPostgreSQLの結果にお いて指定したフィールド番号の内部記憶領域のサイズを(バイト数で)返 します。フィールド番号は0から始まります。 フィールドサイズが-1の場合、その項目は可変長フィールドであることを 示します。この関数は、エラーの場合は&false;を返します。 </para> <para> <function>pg_field_len</function>および <function>pg_field_type</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-field-type.xml +++ phpdoc/ja/reference/pgsql/functions/pg-field-type.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-field-type"> <refnamediv> <refname>pg_field_type</refname> <refpurpose> フィールド番号に対応する型名を返す </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>pg_field_type</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_type</function>は、指定したPostgreSQLの <parameter>result</parameter>リソースにおいて、指定した <parameter>field_number</parameter>の型名を保持する文字列を返しま す。フィールド番号(field_number)は0から始まります。 </para> <para> <function>pg_field_len</function>および <function>pg_field_name</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-free-result.xml +++ phpdoc/ja/reference/pgsql/functions/pg-free-result.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-free-result"> <refnamediv> <refname>pg_free_result</refname> <refpurpose>メモリを開放する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>pg_free_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_free_result</function>は、スクリプト実行中のメモリ使用量 を抑制したい場合にのみコールする必要があります。すべての結果保持用 メモリは、スクリプトが終了する際に自動的に開放されます。 しかしながら、そのスクリプトにおいて、それ以上の結果データを 必要としないことが確実であれば、<parameter>result</parameter>リソー スを引数として<function>pg_free_result</function>をコールし、関連 するメモリを解放することが可能です。この関数は成功時にtrue、エラー 発生時にfalseを返します。 </para> <note> <para> この関数は、<literal>pg_freeresult()</literal>と呼ばれていました。 </para> </note> <para> <function>pg_query</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-insert.xml +++ phpdoc/ja/reference/pgsql/functions/pg-insert.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-insert'> <refnamediv> <refname>pg_insert</refname> <refpurpose> テーブルに配列を挿入する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>pg_insert</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>convert</parameter></methodparam> </methodsynopsis> <para> <function>pg_insert</function>は、 <literal>table_name</literal>で指定したテーブルに <literal>field=>value</literal>形式の<literal>assoc_array</literal> を挿入します。 <literal>convert</literal>が指定されていないか、&true;の場合、 <function>pg_convert</function>が <literal>assoc_array</literal>に適用されます。 </para> <example> <title>pg_insert</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // $_POSTは自動的に変換されるため処理上の問題はありません。 $res = pg_insert($db, 'post_log', $_POST); if ($res) { echo "POSTデータの記録に成功しました。\n"; } else { echo "ユーザが誤った入力を送信しました。\n"; } ?> ]]> </programlisting> </example> <note> <para> この関数は実験的なステータスにあります。 </para> </note> <para> <function>pg_convert</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-last-error.xml +++ phpdoc/ja/reference/pgsql/functions/pg-last-error.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-last-error"> <refnamediv> <refname>pg_last_error</refname> <refpurpose>特定の接続から直近のエラーメッセージ文字列を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>pg_last_error</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_error</function>は、指定した <parameter>connection</parameter>から直近のエラーメッセージを返しま す。 </para> <para> エラーメッセージは、内部的なPostgreSQL(libpq)関数コールにより上書き される可能性があります。PostgreSQLモジュール関数の中で複数のエラー が発生した場合には、この関数は適切なエラーメッセージを返さない可能 性があります。 </para> <para> エラー処理を改善するために <function>pg_result_error</function>, <function>pg_result_status</function>, <function>pg_connection_status</function>も参照下さい。 </para> <note> <para> この関数は、<literal>pg_errormessage()</literal>と呼ばれていました。 </para> </note> <para> <function>pg_result_error</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-last-oid.xml +++ phpdoc/ja/reference/pgsql/functions/pg-last-oid.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-last-oid"> <refnamediv> <refname>pg_last_oid</refname> <refpurpose>直近のオブジェクトIDを返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_last_oid</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_oid</function>は、<function>pg_query</function>で 実行された直近のコマンドがSQLのINSERTだった場合、挿入されたタプル (レコード)に割り当てられた<varname>oid</varname>を取得します。有効な <varname>oid</varname>がある場合、この関数は正の整数を返します。エ ラーが発生したり、<function>pg_query</function>により送信された直近の コマンドがSQLのINSERTでなかった場合や、INSERTに失敗した場合には、 &false;が返されます。 </para> <note> <para> この関数は、<literal>pg_getlastoid()</literal>と呼ばれていました。 </para> </note> <para> <function>pg_query</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-close.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-close.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-close"> <refnamediv> <refname>pg_lo_close</refname> <refpurpose>ラージオブジェクトをクローズする</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_close</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_close</function>はInversion Large Objectをクローズ します。<parameter>large_object</parameter>は、 <function>pg_loopen</function>でオープンされたラージオブジェクト のリソースです。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_open</function>, <function>pg_lo_create</function>, <function>pg_lo_import</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-create.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-create.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.5 --> <refentry id="function.pg-lo-create"> <refnamediv> <refname>pg_lo_create</refname> <refpurpose>ラージオブジェクトを生成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_lo_create</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_create</function>はInversion Large Objectを生成し、 そのラージオブジェクトのoidを返します。 <parameter>connection</parameter>には <function>pg_connect</function> または <function>pg_pconnect</function>でオープンした有効なデータベース 接続を指定します。PostgreSQLはモードINV_READ,INV_WRITEでアクセス します。INV_ARCHIVEはサポートされていません。オブジェクトは常に読 み書き可のアクセス権で生成されます。INV_ARCHIVEはPostgreSQL自身 (バージョン6.3以降)からも削除されました。この関数はラージオブジェ クトoidを返します。エラーが発生した場合は&false;を返します。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-export.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-export.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.5 --> <refentry id="function.pg-lo-export"> <refnamediv> <refname>pg_lo_export</refname> <refpurpose>ラージオブジェクトをファイルにエクスポートする</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_export</methodname> <methodparam><type>int</type><parameter>oid</parameter></methodparam> <methodparam><type>string</type><parameter>pathname</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> 引数<parameter>oid</parameter>によりエクスポートするラージオブジェクトの オブジェクトIDを指定し、引数<parameter>pathname</parameter>により ファイルのパス名を指定します。エラーを発生した場合は&false;、それ以外 は&true;を返します。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_import</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-import.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-import.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-import"> <refnamediv> <refname>pg_lo_import</refname> <refpurpose>ファイルからラージオブジェクトをインポートする</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_lo_import</methodname> <methodparam><type>string</type><parameter>pathname</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> 引数<parameter>pathname</parameter>でラージオブジェクトとして インポートするファイルのパス名を指定します。エラーを発生した場合に &false;、それ以外の場合は新規に作成したラージオブジェクトのoidを 返します。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> ¬e.sm.uidcheck; <para> <function>pg_lo_export</function>および <function>pg_lo_open</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-open.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-open.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-open"> <refnamediv> <refname>pg_lo_open</refname> <refpurpose>ラージオブジェクトをオープンする</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>resource</type><methodname>pg_lo_open</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> <methodparam><type>string</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_open</function>はインバージョンラージオブジェクトを オープンし、ラージオブジェクトのリソースを返します。このリソース は接続に関する情報をカプセル化します。<parameter>oid</parameter> には、有効なラージオブジェクトのoidを指定し、 <parameter>mode</parameter>には"r","w","rw"のうちのいずれかを指定 します。この関数はエラーの場合に &false;を返します。 </para> <warning> <para> ラージオブジェクトのリソースを閉じる前にデータベースへの接続を閉 じないで下さい。 </para> </warning> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_close</function>および <function>pg_lo_create</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-read-all.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-read-all.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-read-all"> <refnamediv> <refname>pg_lo_read_all</refname> <refpurpose> ラージオブジェクト全体を読み込みブラウザに直接送信する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_lo_read_all</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read_all</function> はラージオブジェクトを読み込み、 未送信のヘッダを全て送信した後、ブラウザに直接ラージオブジェクト を送信します。これは主に、イメージや音などのバイナリデータを送信 するために使用します。この関数は送信したバイト数を返します。エラー の場合には、&false;が返されます。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_read</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-read.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-read.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-read"> <refnamediv> <refname>pg_lo_read</refname> <refpurpose>ラージオブジェクトを読み込む</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>pg_lo_read</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>int</type><parameter>len</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read</function>は、ラージオブジェクトから最大 <parameter>len</parameter>バイト分読み込み、文字列として返します。 <parameter>large_object</parameter>には有効なラージオブジェクトの リソースを指定し、<parameter>len</parameter>にはラージオブジェク トセグメントで利用可能な最大サイズを指定します。エラーの場合には、 &false;が返されます。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_read_all</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-unlink.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-unlink.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-unlink"> <refnamediv> <refname>pg_lo_unlink</refname> <refpurpose>ラージオブジェクトを削除する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_unlink</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_unlink</function>は、<parameter>oid</parameter>で 関連付けられたラージオブジェクトを削除します。成功時に&true;、そ の他の場合は&false;が返されます。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_create</function> および <function>pg_lo_import</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-lo-write.xml +++ phpdoc/ja/reference/pgsql/functions/pg-lo-write.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-lo-write"> <refnamediv> <refname>pg_lo_write</refname> <refpurpose>ラージオブジェクトを書く</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_lo_write</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_write</function>は、変数 <parameter>data</parameter>からラージオブジェクトに書き込み、実際 に書きこんだバイト数を返します。エラーを生じた場合は&false;を返し ます。<parameter>large_object</parameter>は、 <function>pg_lo_open</function>でオープンされたラージオブジェクト のリソースです。 </para> <para> ラージオブジェクト(lo)インターフェイスを使用するには、トランザク ションブロックの中に括る必要があります。 </para> <para> <function>pg_lo_create</function>および <function>pg_lo_open</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-metadata.xml +++ phpdoc/ja/reference/pgsql/functions/pg-metadata.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-metadata'> <refnamediv> <refname>pg_metadata</refname> <refpurpose> テーブルからメタデータを取得する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>array</type><methodname>pg_metadata</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> </methodsynopsis> <para> <function>pg_metadata</function>は、<literal>table_name</literal>に 関するテーブル定義を配列として返します。エラーが発生した場合には、 &false;が返されます。 </para> <note> <para> この関数は実験的なステータスにあります。 </para> </note> <para> <function>pg_convert</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-num-fields.xml +++ phpdoc/ja/reference/pgsql/functions/pg-num-fields.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-num-fields"> <refnamediv> <refname>pg_num_fields</refname> <refpurpose>フィールド数を返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_num_fields</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_fields</function>は、PostgreSQL <parameter>result</parameter>におけるフィールド(カラム)数を返しま す。引数は、<function>pg_query</function>により返された結果リソー スです。この関数はエラーの場合-1を返します。 </para> <note> <para> この関数は、<literal>pg_numfields()</literal>と呼ばれていました。 </para> </note> <para> <function>pg_num_rows</function> および <function>pg_affected_rows</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-num-rows.xml +++ phpdoc/ja/reference/pgsql/functions/pg-num-rows.xml <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/pgsql.xml, last change in rev 1.1 --> <refentry id="function.pg-num-rows"> <refnamediv> <refname>pg_num_rows</refname> <refpurpose>行数を返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>pg_num_rows</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_rows</function>はPostgreSQLの <parameter>result</parameter>リソースにおける行数を返します。引数 は、<function>pg_exec</function>で返されたクエリ結果リソースです。 この関数は、エラーの際に-1を返します。 </para> <note> <para> INSERT、UPDATE、DELETEクエリで変更されたレコード数を得るには、 <function>pg_affected_rows</function> を使用して下さい。 </para> </note> <note> <para> この関数は、<literal>pg_numrows()</literal>と呼ばれていました。 </para> </note> <para> <function>pg_num_fields</function> および <function>pg_affected_rows</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 --> Index: phpdoc/ja/reference/pgsql/functions/pg-select.xml +++ phpdoc/ja/reference/pgsql/functions/pg-select.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-select'> <refnamediv> <refname>pg_select</refname> <refpurpose> レコードを選択する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>array</type><methodname>pg_select</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>convert</parameter></methodparam> </methodsynopsis> <para> <function>pg_select</function>は、<literal>field=>value</literal>形 式の<literal>assoc_array</literal>で指定したレコードを選択します。 クエリに成功した場合、<literal>assoc_array</literal>で指定した条件 にマッチする全てのレコードとフィールドを含む配列が返されます。 <literal>convert</literal>が指定されないか&true;の場合、 <function>pg_convert</function>が<literal>assoc_array</literal>に適 用されます。 </para> <example> <title>pg_select</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // $_POSTは自動的に変換されるため、問題ありません。 $rec = pg_select($db, 'post_log', $_POST); if ($rec) { echo "レコードが選択されました。\n"; var_dump($rec); } else { echo "ユーザが誤った入力を送信しました。\n"; } ?> ]]> </programlisting> </example> <note> <para> この関数は実験的なステータスにあります。 </para> </note> <para> <function>pg_convert</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 -->