Skip to content

Commit

Permalink
新たなPDOサブクラスとメソッドの翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
KentarouTakeda committed Dec 9, 2024
1 parent d72f35f commit 8e64a12
Show file tree
Hide file tree
Showing 41 changed files with 562 additions and 1,590 deletions.
14 changes: 7 additions & 7 deletions reference/pdo/pdo/connect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<refentry xml:id="pdo.connect" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
<refname>PDO::connect</refname>
<refpurpose>Connect to a database and return a PDO subclass for drivers that support it</refpurpose>
<refpurpose>データベースに接続しドライバが対応する PDO サブクラスを返す</refpurpose>
</refnamediv>

<refsect1 role="description">
Expand All @@ -18,9 +18,9 @@
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<simpara>
Creates an instance of a <classname>PDO</classname> subclass for the
database being connection if it exists,
otherwise return a generic <classname>PDO</classname> instance.
接続するデータベースに対応する <classname>PDO</classname> サブクラスが
存在する場合そのインスタンスを、
存在しない場合は汎用的な <classname>PDO</classname> インスタンスを作成します。
</simpara>
</refsect1>

Expand All @@ -31,9 +31,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Returns an instance of a <classname>PDO</classname> subclass for the
corresponding PDO driver if it exists,
or a generic <classname>PDO</classname> instance.
接続するデータベースに対応する <classname>PDO</classname> サブクラスが
存在する場合そのインスタンス、
または汎用的な <classname>PDO</classname> インスタンスを返します。
</simpara>
</refsect1>

Expand Down
1 change: 0 additions & 1 deletion reference/pdo/pdo/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
<methodname>PDO::__construct</methodname> は、
指定されたデータベースへの接続に失敗した場合、
<constant>PDO::ATTR_ERRMODE</constant> が設定されているかどうかに関わらず、
<classname>PDOException</classname> をスローします。
Expand Down
5 changes: 2 additions & 3 deletions reference/pdo_dblib/pdo-dblib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- EN-Revision: 379d23588def29a360fca16d5daec6c659e13509 Maintainer: KentarouTakeda Status: ready -->
<!-- CREDITS: KentarouTakeda -->
<reference xml:id="class.pdo-dblib" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The Pdo\Dblib class</title>
<title>Pdo\Dblib クラス</title>
<titleabbrev>Pdo\Dblib</titleabbrev>

<partintro>
Expand All @@ -12,8 +12,7 @@
<section xml:id="pdo-dblib.intro">
&reftitle.intro;
<simpara>
A <classname>PDO</classname> subclass representing a connection using
the DBLib PDO driver.
DBLib PDO ドライバによる接続を示す <classname>PDO</classname> サブクラスです。
</simpara>
</section>
<!-- }}} -->
Expand Down
6 changes: 3 additions & 3 deletions reference/pdo_firebird/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</term>
<listitem>
<para>
日付フォーマットを設定します。
<constant>Pdo\Firebird::ATTR_DATE_FORMAT</constant> &Alias;
</para>
</listitem>
</varlistentry>
Expand All @@ -23,7 +23,7 @@
</term>
<listitem>
<para>
時刻フォーマットを設定します。
<constant>Pdo\Firebird::ATTR_TIME_FORMAT</constant> &Alias;
</para>
</listitem>
</varlistentry>
Expand All @@ -34,7 +34,7 @@
</term>
<listitem>
<para>
タイムスタンプフォーマットを設定します。
<constant>Pdo\Firebird::ATTR_TIMESTAMP_FORMAT</constant> &Alias;
</para>
</listitem>
</varlistentry>
Expand Down
45 changes: 22 additions & 23 deletions reference/pdo_firebird/pdo-firebird.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b9cf1a2e7307131913ac3c16c2fb67ed9ad38527 Maintainer: KentarouTakeda Status: ready -->
<!-- CREDITS: KentarouTakeda -->
<!-- CREDITS: takagi,KentarouTakeda -->
<reference xml:id="class.pdo-firebird" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The Pdo\Firebird class</title>
<title>Pdo\Firebird クラス</title>
<titleabbrev>Pdo\Firebird</titleabbrev>

<partintro>
Expand All @@ -12,8 +12,7 @@
<section xml:id="pdo-firebird.intro">
&reftitle.intro;
<simpara>
A <classname>PDO</classname> subclass representing a connection using
the Firebird PDO driver.
Firebird PDO ドライバによる接続を示す <classname>PDO</classname> サブクラスです。
</simpara>
</section>
<!-- }}} -->
Expand Down Expand Up @@ -110,74 +109,74 @@
<term><constant>Pdo\Firebird::ATTR_DATE_FORMAT</constant></term>
<listitem>
<simpara>
Sets the date format.
日付フォーマットを設定します。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.attr-time-format">
<term><constant>Pdo\Firebird::ATTR_TIME_FORMAT</constant></term>
<listitem>
<simpara>
Sets the time format.
時刻フォーマットを設定します。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.attr-timestamp-format">
<term><constant>Pdo\Firebird::ATTR_TIMESTAMP_FORMAT</constant></term>
<listitem>
<simpara>
Sets the timestamp format.
タイムスタンプフォーマットを設定します。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.transaction-isolation-level">
<term><constant>Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL</constant></term>
<listitem>
<simpara>
Attribute to sets the transaction isolation level.
This can be one of <constant>Pdo\Firebird::READ_COMMITTED</constant>,
<constant>Pdo\Firebird::REPEATABLE_READ</constant>,
or <constant>Pdo\Firebird::SERIALIZABLE</constant>.
トランザクション分離レベルを設定します。
<constant>Pdo\Firebird::READ_COMMITTED</constant>
<constant>Pdo\Firebird::REPEATABLE_READ</constant>
または <constant>Pdo\Firebird::SERIALIZABLE</constant> のいずれかです。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.read-committed">
<term><constant>Pdo\Firebird::READ_COMMITTED</constant></term>
<listitem>
<simpara>
Flag denoting the <acronym>ANSI</acronym> transaction isolation
level is read commited.
This is the default behavior.
<acronym>ANSI</acronym> トランザクション分離レベルが
Read Committed であることを示すフラグです。
これがデフォルトの動作です。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.repeatable-read">
<term><constant>Pdo\Firebird::REPEATABLE_READ</constant></term>
<listitem>
<simpara>
Flag denoting the <acronym>ANSI</acronym> transaction isolation
level is repeatable read.
This corresponds to Firebird's "snapshot" isolation level.
<acronym>ANSI</acronym> トランザクション分離レベルが
Repeatable Read であることを示すフラグです。
Firebird"snapshot" 分離レベルに相当します。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.serializable">
<term><constant>Pdo\Firebird::SERIALIZABLE</constant></term>
<listitem>
<simpara>
Flag denoting the <acronym>ANSI</acronym> transaction isolation
level is serializable.
This corresponds to Firebird's "snapshot table stability" isolation level.
<acronym>ANSI</acronym> トランザクション分離レベルが
Serializeable であることを示すフラグです。
Firebird"snapshot table stability" 分離レベルに相当します。
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo-firebird.constants.writable-transaction">
<term><constant>Pdo\Firebird::WRITABLE_TRANSACTION</constant></term>
<listitem>
<simpara>
Boolean attribute used to toggle the transaction access mode between
<literal>READ ONLY</literal> and <literal>READ WRITE</literal>.
By default, it is &true; indicating <literal>READ WRITE</literal>.
ブール値で、トランザクションアクセスモードを
<literal>READ ONLY</literal> または <literal>READ WRITE</literal> に設定します。
デフォルトは &true; で、<literal>READ WRITE</literal> を表します。
</simpara>
</listitem>
</varlistentry>
Expand Down
8 changes: 4 additions & 4 deletions reference/pdo_firebird/pdo/firebird/getapiversion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<refentry xml:id="pdo-firebird.getapiversion" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Pdo\Firebird::getApiVersion</refname>
<refpurpose>Get the API version</refpurpose>
<refpurpose>APIバージョンを取得する</refpurpose>
</refnamediv>

<refsect1 role="description">
Expand All @@ -15,8 +15,8 @@
<void/>
</methodsynopsis>
<simpara>
Returns the Firebird API version as defined by the C constant
<constant>FB_API_VER</constant> in <filename class="headerfile">ibase.h</filename>.
<filename class="headerfile">ibase.h</filename> 内で C 定数 <constant>FB_API_VER</constant> として定義されている
Firebird API のバージョンを返します。
</simpara>
</refsect1>

Expand All @@ -28,7 +28,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Returns the FireBird API as an <type>int</type>.
FireBird API のバージョンを <type>int</type> 型で返します。
</simpara>
</refsect1>
</refentry>
Expand Down
5 changes: 3 additions & 2 deletions reference/pdo_mysql/configure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ $ ./configure --with-pdo-mysql --with-mysql-sock=/var/mysql/mysql.sock
</screen>
</para>
<para>
SSL サポートを有効にするには、適切な <link linkend="pdo-mysql.constants">PDO_MySQL 定数</link>
<acronym>SSL</acronym> サポートを有効にするには、適切な
<constant>Pdo\Mysql::ATTR_SSL_<replaceable>*</replaceable></constant>
を指定します。これは <link xlink:href="&url.mysql.docs.ssl.set;">MySQL C API 関数 mysql_ssl_set()</link>
をコールするのと同じ意味になります。また、SSL を <classname>PDO::setAttribute</classname>
をコールするのと同じ意味になります。また、SSL を <methodname>PDO::setAttribute</methodname>
で有効にすることはできません。というのも、この時点ではすでに接続が確立されてしまっているからです。
MySQL のドキュメントで <link xlink:href="&url.mysql.docs.ssl.using;">SSL を使った
MySQL への接続</link> について確認しましょう。
Expand Down
Loading

0 comments on commit 8e64a12

Please sign in to comment.