Skip to content

Commit 4f7dc70

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent a45b44e commit 4f7dc70

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

library/sqlite3.po

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,13 +1987,13 @@ msgid ""
19871987
"iterate over it directly using only a single call on the :class:`Connection` "
19881988
"object."
19891989
msgstr ""
1990-
":class:`Connection` クラスのメソッド :meth:`~Connection.execute`, :meth:"
1991-
"`~Connection.executemany`, :meth:`~Connection.executescript` を使うことで、 "
1992-
"(しばしば余計な) :class:`Cursor` オブジェクトをわざわざ作り出さずに済むので、"
1993-
"コードをより簡潔に書くことができます。 :class:`Cursor` オブジェクトは暗黙裡に"
1994-
"生成されショートカットメソッドの戻り値として受け取ることができます。この方法"
1995-
"を使えば、 ``SELECT`` 文を実行してその結果について反復することが、 :class:"
1996-
"`Connection` オブジェクトに対する呼び出し一つで行なえます。"
1990+
":class:`Connection` クラスのメソッド :meth:`~Connection.execute` :meth:"
1991+
"`~Connection.executemany`:meth:`~Connection.executescript` を使うこと"
1992+
"で、 (しばしば余計な) :class:`Cursor` オブジェクトをわざわざ作り出さずに済む"
1993+
"ので、コードをより簡潔に書くことができます。 :class:`Cursor` オブジェクトは暗"
1994+
"黙裡に生成され、ショートカット・メソッドの戻り値として受け取ることができま"
1995+
"す。この方法を使えば、 ``SELECT`` 文を実行してその結果について反復すること"
1996+
"が、 :class:`Connection` オブジェクトに対する呼び出し一つで行なえます。"
19971997

19981998
#: ../../library/sqlite3.rst:1758
19991999
msgid "How to use the connection context manager"
@@ -2008,12 +2008,6 @@ msgid ""
20082008
"fails, or if the body of the ``with`` statement raises an uncaught "
20092009
"exception, the transaction is rolled back."
20102010
msgstr ""
2011-
"Connection object can be used as a context manager that automatically "
2012-
"commits or rolls back open transactions when leaving the body of the context "
2013-
"manager. If the body of the with statement finishes without exceptions, the "
2014-
"transaction is committed. If this commit fails, or if the body of the "
2015-
"``with`` statement raises an uncaught exception, the transaction is rolled "
2016-
"back.\n"
20172011
":class:`Connection` ブジェクトは、コンテキストマネージャのブロックから離れる"
20182012
"ときに、開いているトランザクションを自動的にコミットまたはロールバックするコ"
20192013
"ンテキストマネージャとして使用できます。 :keyword:`with` 文のブロックが例外無"
@@ -2067,6 +2061,8 @@ msgid ""
20672061
"More information about this feature, including a list of parameters, can be "
20682062
"found in the `SQLite URI documentation`_."
20692063
msgstr ""
2064+
"パラメータのリストを含む、この機能の詳細については、 `SQLite URI "
2065+
"documentation`_ を参照してください。"
20702066

20712067
#: ../../library/sqlite3.rst:1853
20722068
msgid "How to create and use row factories"
@@ -2078,6 +2074,10 @@ msgid ""
20782074
"class:`!tuple` does not suit your needs, you can use the :class:`sqlite3."
20792075
"Row` class or a custom :attr:`~Cursor.row_factory`."
20802076
msgstr ""
2077+
"デフォルトでは、 :mod:`!sqlite3` は各行(row)を :class:`タプル <tuple>` として"
2078+
"表します。 :class:`タプル <!tuple>` があなたのニーズと合わない場合は、 :"
2079+
"class:`sqlite3.Row` クラスまたはカスタム :attr:`~Cursor.row_factory` を使用で"
2080+
"きます。"
20812081

20822082
#: ../../library/sqlite3.rst:1860
20832083
msgid ""
@@ -2086,6 +2086,10 @@ msgid ""
20862086
"`Connection.row_factory`, so all cursors created from the connection will "
20872087
"use the same row factory."
20882088
msgstr ""
2089+
":attr:`!row_factory` は :class:`Cursor` と :class:`Connection` の両方に属性と"
2090+
"して存在しますが、 その接続(connection)から作成されたすべてのカーソルが同一の"
2091+
"行工場(row factory)を使用するようにするために、 :class:`Connection."
2092+
"row_factory` を設定することをお勧めします。"
20892093

20902094
#: ../../library/sqlite3.rst:1865
20912095
msgid ""
@@ -2098,32 +2102,41 @@ msgstr ""
20982102
#: ../../library/sqlite3.rst:1875
20992103
msgid "Queries now return :class:`!Row` objects:"
21002104
msgstr ""
2105+
"このように設定すると、クエリは :class:`!Row`オブジェクトを返すようになります:"
21012106

21022107
#: ../../library/sqlite3.rst:1890
21032108
msgid ""
21042109
"You can create a custom :attr:`~Cursor.row_factory` that returns each row as "
21052110
"a :class:`dict`, with column names mapped to values:"
21062111
msgstr ""
2112+
"各列名が各値にマップされた :class:`dict` として行を返す、カスタム :attr:"
2113+
"`~Cursor.row_factory` を作成することもできます:"
21072114

21082115
#: ../../library/sqlite3.rst:1899
21092116
msgid ""
21102117
"Using it, queries now return a :class:`!dict` instead of a :class:`!tuple`:"
21112118
msgstr ""
2119+
"これを使うと、クエリは :class:`タプル <!tuple>` の代わりに :class:`!dict` を"
2120+
"返すようになります:"
21122121

21132122
#: ../../library/sqlite3.rst:1909
21142123
msgid "The following row factory returns a :term:`named tuple`:"
21152124
msgstr ""
2125+
"以下の行工場(row factory)は :term:`名前付きタプル <named tuple>` を返します:"
21162126

21172127
#: ../../library/sqlite3.rst:1920
21182128
msgid ":func:`!namedtuple_factory` can be used as follows:"
2119-
msgstr ""
2129+
msgstr ":func:`!namedtuple_factory` は以下のようにして使う事ができます:"
21202130

21212131
#: ../../library/sqlite3.rst:1935
21222132
msgid ""
21232133
"With some adjustments, the above recipe can be adapted to use a :class:"
21242134
"`~dataclasses.dataclass`, or any other custom class, instead of a :class:"
21252135
"`~collections.namedtuple`."
21262136
msgstr ""
2137+
"上記レシピをチューニングすれば、 :class:`~collections.namedtuple` の代わり"
2138+
"に :class:`~dataclasses.dataclass` または、その他のカスタム・クラスを使用する"
2139+
"ように適合(adapt)させることができます。"
21272140

21282141
#: ../../library/sqlite3.rst:1943
21292142
msgid "Explanation"

0 commit comments

Comments
 (0)