Skip to content

Commit 65fcadb

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent 07488fe commit 65fcadb

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

library/sqlite3.po

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ msgid ""
5353
"SQL interface compliant with the DB-API 2.0 specification described by :pep:"
5454
"`249`, and requires SQLite 3.7.15 or newer."
5555
msgstr ""
56+
":mod:`!sqlite3` モジュールは Gerhard Häring によって書かれました。 :pep:"
57+
"`249` に記述された DB-API 2.0 仕様に準拠した SQL インターフェースを提供し、"
58+
"SQLite 3.7.15 以降が必要です。"
5659

5760
#: ../../library/sqlite3.rst:34
5861
msgid "This document includes four main sections:"
@@ -116,6 +119,10 @@ msgid ""
116119
"basic :mod:`!sqlite3` functionality. It assumes a fundamental understanding "
117120
"of database concepts, including `cursors`_ and `transactions`_."
118121
msgstr ""
122+
"このチュートリアルでは、基本的な :mod:`!sqlite3` 機能を使用して、 例としてモ"
123+
"ンティ・パイソンの映画のデータベースを作成します。 カーソル(`cursors`_)やトラ"
124+
"ンザクション(`transactions`_)を含むデータベースの概念の基本を理解していること"
125+
"を前提としています。"
119126

120127
#: ../../library/sqlite3.rst:73
121128
msgid ""
@@ -130,13 +137,18 @@ msgid ""
130137
"The returned :class:`Connection` object ``con`` represents the connection to "
131138
"the on-disk database."
132139
msgstr ""
140+
"返された :class:`Connection` オブジェクト ``con`` は、ディスク上のデータベー"
141+
"スへの接続を表します。"
133142

134143
#: ../../library/sqlite3.rst:87
135144
msgid ""
136145
"In order to execute SQL statements and fetch results from SQL queries, we "
137146
"will need to use a database cursor. Call :meth:`con.cursor() <Connection."
138147
"cursor>` to create the :class:`Cursor`:"
139148
msgstr ""
149+
"SQL 文を実行し、SQL クエリから結果を取得するには、データベース・カーソルを使"
150+
"用する必要があります。 :meth:`con.cursor() <Connection.cursor>` を呼び出し"
151+
"て :class:`Cursor` を作成します:"
140152

141153
#: ../../library/sqlite3.rst:95
142154
msgid ""
@@ -283,6 +295,8 @@ msgid ""
283295
"The path to the database file to be opened. Pass ``\":memory:\"`` to open a "
284296
"connection to a database that is in RAM instead of on disk."
285297
msgstr ""
298+
"開きたいデータベース・ファイルへのファイル・パス。 ディスク上ではなく RAM 上"
299+
"に置くデータベースへの接続を開くには、``\":memory:\"`` を渡します。"
286300

287301
#: ../../library/sqlite3.rst:272
288302
msgid ""
@@ -304,6 +318,15 @@ msgid ""
304318
"class:`str` will be returned instead. By default (``0``), type detection is "
305319
"disabled."
306320
msgstr ""
321+
":func:`register_converter` で登録された変換関数を使用して、 :ref:`SQLite でネ"
322+
"イティブにサポートされている型 <sqlite3-types>`<sqlite3-types> 以外のデータ型"
323+
"を検出して、 Python 型に変換するかどうか、そして、その変換方法を制御します。 "
324+
"これは、 :const:`PARSE_DECLTYPES` と :const:`PARSE_COLNAMES` を(ビット論理和 "
325+
"``|`` を使用して)任意の組み合わせで設定することで有効になります。 両方のフラ"
326+
"グが設定されている場合、宣言された型よりも列名が優先されます。 "
327+
"*detect_types* パラメータが設定されている場合でも、 生成されたフィールド(たと"
328+
"えば ``max(data)``)の型は検出できず、代わりに :class:`str` が返されます。デ"
329+
"フォルト (``0``) では、データ型検出は無効になっています。"
307330

308331
#: ../../library/sqlite3.rst:293
309332
msgid ""
@@ -1430,6 +1453,11 @@ msgid ""
14301453
"vulnerable to `SQL injection attacks`_. For example, an attacker can simply "
14311454
"close the single quote and inject ``OR TRUE`` to select all rows::"
14321455
msgstr ""
1456+
"たいてい、SQL 操作は Python 変数の値を使う必要があります。しかし、 Python の"
1457+
"文字列操作を使用してクエリを組み立てるのはSQLインジェクション攻撃(`SQL "
1458+
"injection attacks`_)に対して脆弱なので注意が必要です。たとえば、攻撃者は以下"
1459+
"のように単純にシングルクォートを閉じて ``OR TRUE`` を挿入してすべての行を選択"
1460+
"できます::"
14331461

14341462
#: ../../library/sqlite3.rst:1441
14351463
msgid ""
@@ -1449,7 +1477,7 @@ msgstr ""
14491477

14501478
#: ../../library/sqlite3.rst:1483
14511479
msgid "How to adapt custom Python types to SQLite values"
1452-
msgstr ""
1480+
msgstr "カスタム Python 型を SQLite 値に適合させる方法"
14531481

14541482
#: ../../library/sqlite3.rst:1485
14551483
msgid ""
@@ -1484,7 +1512,7 @@ msgstr ""
14841512

14851513
#: ../../library/sqlite3.rst:1534
14861514
msgid "How to register adapter callables"
1487-
msgstr ""
1515+
msgstr "適合関数の登録方法"
14881516

14891517
#: ../../library/sqlite3.rst:1536
14901518
msgid ""
@@ -1495,7 +1523,7 @@ msgstr ""
14951523

14961524
#: ../../library/sqlite3.rst:1566
14971525
msgid "How to convert SQLite values to custom Python types"
1498-
msgstr ""
1526+
msgstr "SQLite 値をカスタム Python 型に変換する方法"
14991527

15001528
#: ../../library/sqlite3.rst:1568
15011529
msgid ""
@@ -1549,11 +1577,11 @@ msgstr ""
15491577

15501578
#: ../../library/sqlite3.rst:1651
15511579
msgid "Adapter and converter recipes"
1552-
msgstr ""
1580+
msgstr "適合関数と変換関数のレシピ集"
15531581

15541582
#: ../../library/sqlite3.rst:1653
15551583
msgid "This section shows recipes for common adapters and converters."
1556-
msgstr ""
1584+
msgstr "この節では一般的な適合関数と変換関数のレシピを紹介します。"
15571585

15581586
#: ../../library/sqlite3.rst:1715
15591587
msgid "How to use connection shortcut methods"

0 commit comments

Comments
 (0)