Skip to content
  • Sponsor python/python-docs-ja

  • Notifications You must be signed in to change notification settings
  • Fork 33
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bcce1eb

Browse files
author
github-actions
committedMay 9, 2023
Update translations from Transifex
1 parent f6e7a11 commit bcce1eb

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
@@ -2545,13 +2545,13 @@ msgid ""
25452545
"iterate over it directly using only a single call on the :class:`Connection` "
25462546
"object."
25472547
msgstr ""
2548-
":class:`Connection` クラスのメソッド :meth:`~Connection.execute`, :meth:"
2549-
"`~Connection.executemany`, :meth:`~Connection.executescript` を使うことで、 "
2550-
"(しばしば余計な) :class:`Cursor` オブジェクトをわざわざ作り出さずに済むので、"
2551-
"コードをより簡潔に書くことができます。 :class:`Cursor` オブジェクトは暗黙裡に"
2552-
"生成されショートカットメソッドの戻り値として受け取ることができます。この方法"
2553-
"を使えば、 ``SELECT`` 文を実行してその結果について反復することが、 :class:"
2554-
"`Connection` オブジェクトに対する呼び出し一つで行なえます。"
2548+
":class:`Connection` クラスのメソッド :meth:`~Connection.execute` :meth:"
2549+
"`~Connection.executemany`:meth:`~Connection.executescript` を使うこと"
2550+
"で、 (しばしば余計な) :class:`Cursor` オブジェクトをわざわざ作り出さずに済む"
2551+
"ので、コードをより簡潔に書くことができます。 :class:`Cursor` オブジェクトは暗"
2552+
"黙裡に生成され、ショートカット・メソッドの戻り値として受け取ることができま"
2553+
"す。この方法を使えば、 ``SELECT`` 文を実行してその結果について反復すること"
2554+
"が、 :class:`Connection` オブジェクトに対する呼び出し一つで行なえます。"
25552555

25562556
#: ../../library/sqlite3.rst:2178
25572557
msgid "How to use the connection context manager"
@@ -2566,12 +2566,6 @@ msgid ""
25662566
"fails, or if the body of the ``with`` statement raises an uncaught "
25672567
"exception, the transaction is rolled back."
25682568
msgstr ""
2569-
"Connection object can be used as a context manager that automatically "
2570-
"commits or rolls back open transactions when leaving the body of the context "
2571-
"manager. If the body of the with statement finishes without exceptions, the "
2572-
"transaction is committed. If this commit fails, or if the body of the "
2573-
"``with`` statement raises an uncaught exception, the transaction is rolled "
2574-
"back.\n"
25752569
":class:`Connection` ブジェクトは、コンテキストマネージャのブロックから離れる"
25762570
"ときに、開いているトランザクションを自動的にコミットまたはロールバックするコ"
25772571
"ンテキストマネージャとして使用できます。 :keyword:`with` 文のブロックが例外無"
@@ -2625,6 +2619,8 @@ msgid ""
26252619
"More information about this feature, including a list of parameters, can be "
26262620
"found in the `SQLite URI documentation`_."
26272621
msgstr ""
2622+
"パラメータのリストを含む、この機能の詳細については、 `SQLite URI "
2623+
"documentation`_ を参照してください。"
26282624

26292625
#: ../../library/sqlite3.rst:2273
26302626
msgid "How to create and use row factories"
@@ -2636,6 +2632,10 @@ msgid ""
26362632
"class:`!tuple` does not suit your needs, you can use the :class:`sqlite3."
26372633
"Row` class or a custom :attr:`~Cursor.row_factory`."
26382634
msgstr ""
2635+
"デフォルトでは、 :mod:`!sqlite3` は各行(row)を :class:`タプル <tuple>` として"
2636+
"表します。 :class:`タプル <!tuple>` があなたのニーズと合わない場合は、 :"
2637+
"class:`sqlite3.Row` クラスまたはカスタム :attr:`~Cursor.row_factory` を使用で"
2638+
"きます。"
26392639

26402640
#: ../../library/sqlite3.rst:2280
26412641
msgid ""
@@ -2644,6 +2644,10 @@ msgid ""
26442644
"`Connection.row_factory`, so all cursors created from the connection will "
26452645
"use the same row factory."
26462646
msgstr ""
2647+
":attr:`!row_factory` は :class:`Cursor` と :class:`Connection` の両方に属性と"
2648+
"して存在しますが、 その接続(connection)から作成されたすべてのカーソルが同一の"
2649+
"行工場(row factory)を使用するようにするために、 :class:`Connection."
2650+
"row_factory` を設定することをお勧めします。"
26472651

26482652
#: ../../library/sqlite3.rst:2285
26492653
msgid ""
@@ -2656,32 +2660,41 @@ msgstr ""
26562660
#: ../../library/sqlite3.rst:2295
26572661
msgid "Queries now return :class:`!Row` objects:"
26582662
msgstr ""
2663+
"このように設定すると、クエリは :class:`!Row`オブジェクトを返すようになります:"
26592664

26602665
#: ../../library/sqlite3.rst:2310
26612666
msgid ""
26622667
"You can create a custom :attr:`~Cursor.row_factory` that returns each row as "
26632668
"a :class:`dict`, with column names mapped to values:"
26642669
msgstr ""
2670+
"各列名が各値にマップされた :class:`dict` として行を返す、カスタム :attr:"
2671+
"`~Cursor.row_factory` を作成することもできます:"
26652672

26662673
#: ../../library/sqlite3.rst:2319
26672674
msgid ""
26682675
"Using it, queries now return a :class:`!dict` instead of a :class:`!tuple`:"
26692676
msgstr ""
2677+
"これを使うと、クエリは :class:`タプル <!tuple>` の代わりに :class:`!dict` を"
2678+
"返すようになります:"
26702679

26712680
#: ../../library/sqlite3.rst:2329
26722681
msgid "The following row factory returns a :term:`named tuple`:"
26732682
msgstr ""
2683+
"以下の行工場(row factory)は :term:`名前付きタプル <named tuple>` を返します:"
26742684

26752685
#: ../../library/sqlite3.rst:2340
26762686
msgid ":func:`!namedtuple_factory` can be used as follows:"
2677-
msgstr ""
2687+
msgstr ":func:`!namedtuple_factory` は以下のようにして使う事ができます:"
26782688

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

26862699
#: ../../library/sqlite3.rst:2363
26872700
msgid "Explanation"

0 commit comments

Comments
 (0)
Failed to load comments.