@@ -53,6 +53,9 @@ msgid ""
53
53
"SQL interface compliant with the DB-API 2.0 specification described by :pep:"
54
54
"`249`, and requires SQLite 3.7.15 or newer."
55
55
msgstr ""
56
+ ":mod:`!sqlite3` モジュールは Gerhard Häring によって書かれました。 :pep:"
57
+ "`249` に記述された DB-API 2.0 仕様に準拠した SQL インターフェースを提供し、"
58
+ "SQLite 3.7.15 以降が必要です。"
56
59
57
60
#: ../../library/sqlite3.rst:34
58
61
msgid "This document includes four main sections:"
@@ -116,6 +119,10 @@ msgid ""
116
119
"basic :mod:`!sqlite3` functionality. It assumes a fundamental understanding "
117
120
"of database concepts, including `cursors`_ and `transactions`_."
118
121
msgstr ""
122
+ "このチュートリアルでは、基本的な :mod:`!sqlite3` 機能を使用して、 例としてモ"
123
+ "ンティ・パイソンの映画のデータベースを作成します。 カーソル(`cursors`_)やトラ"
124
+ "ンザクション(`transactions`_)を含むデータベースの概念の基本を理解していること"
125
+ "を前提としています。"
119
126
120
127
#: ../../library/sqlite3.rst:73
121
128
msgid ""
@@ -130,13 +137,18 @@ msgid ""
130
137
"The returned :class:`Connection` object ``con`` represents the connection to "
131
138
"the on-disk database."
132
139
msgstr ""
140
+ "返された :class:`Connection` オブジェクト ``con`` は、ディスク上のデータベー"
141
+ "スへの接続を表します。"
133
142
134
143
#: ../../library/sqlite3.rst:87
135
144
msgid ""
136
145
"In order to execute SQL statements and fetch results from SQL queries, we "
137
146
"will need to use a database cursor. Call :meth:`con.cursor() <Connection."
138
147
"cursor>` to create the :class:`Cursor`:"
139
148
msgstr ""
149
+ "SQL 文を実行し、SQL クエリから結果を取得するには、データベース・カーソルを使"
150
+ "用する必要があります。 :meth:`con.cursor() <Connection.cursor>` を呼び出し"
151
+ "て :class:`Cursor` を作成します:"
140
152
141
153
#: ../../library/sqlite3.rst:95
142
154
msgid ""
@@ -283,6 +295,8 @@ msgid ""
283
295
"The path to the database file to be opened. Pass ``\" :memory:\" `` to open a "
284
296
"connection to a database that is in RAM instead of on disk."
285
297
msgstr ""
298
+ "開きたいデータベース・ファイルへのファイル・パス。 ディスク上ではなく RAM 上"
299
+ "に置くデータベースへの接続を開くには、``\" :memory:\" `` を渡します。"
286
300
287
301
#: ../../library/sqlite3.rst:272
288
302
msgid ""
@@ -304,6 +318,15 @@ msgid ""
304
318
"class:`str` will be returned instead. By default (``0``), type detection is "
305
319
"disabled."
306
320
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``) では、データ型検出は無効になっています。"
307
330
308
331
#: ../../library/sqlite3.rst:293
309
332
msgid ""
@@ -1430,6 +1453,11 @@ msgid ""
1430
1453
"vulnerable to `SQL injection attacks`_. For example, an attacker can simply "
1431
1454
"close the single quote and inject ``OR TRUE`` to select all rows::"
1432
1455
msgstr ""
1456
+ "たいてい、SQL 操作は Python 変数の値を使う必要があります。しかし、 Python の"
1457
+ "文字列操作を使用してクエリを組み立てるのはSQLインジェクション攻撃(`SQL "
1458
+ "injection attacks`_)に対して脆弱なので注意が必要です。たとえば、攻撃者は以下"
1459
+ "のように単純にシングルクォートを閉じて ``OR TRUE`` を挿入してすべての行を選択"
1460
+ "できます::"
1433
1461
1434
1462
#: ../../library/sqlite3.rst:1441
1435
1463
msgid ""
@@ -1449,7 +1477,7 @@ msgstr ""
1449
1477
1450
1478
#: ../../library/sqlite3.rst:1483
1451
1479
msgid "How to adapt custom Python types to SQLite values"
1452
- msgstr ""
1480
+ msgstr "カスタム Python 型を SQLite 値に適合させる方法 "
1453
1481
1454
1482
#: ../../library/sqlite3.rst:1485
1455
1483
msgid ""
@@ -1484,7 +1512,7 @@ msgstr ""
1484
1512
1485
1513
#: ../../library/sqlite3.rst:1534
1486
1514
msgid "How to register adapter callables"
1487
- msgstr ""
1515
+ msgstr "適合関数の登録方法 "
1488
1516
1489
1517
#: ../../library/sqlite3.rst:1536
1490
1518
msgid ""
@@ -1495,7 +1523,7 @@ msgstr ""
1495
1523
1496
1524
#: ../../library/sqlite3.rst:1566
1497
1525
msgid "How to convert SQLite values to custom Python types"
1498
- msgstr ""
1526
+ msgstr "SQLite 値をカスタム Python 型に変換する方法 "
1499
1527
1500
1528
#: ../../library/sqlite3.rst:1568
1501
1529
msgid ""
@@ -1549,11 +1577,11 @@ msgstr ""
1549
1577
1550
1578
#: ../../library/sqlite3.rst:1651
1551
1579
msgid "Adapter and converter recipes"
1552
- msgstr ""
1580
+ msgstr "適合関数と変換関数のレシピ集 "
1553
1581
1554
1582
#: ../../library/sqlite3.rst:1653
1555
1583
msgid "This section shows recipes for common adapters and converters."
1556
- msgstr ""
1584
+ msgstr "この節では一般的な適合関数と変換関数のレシピを紹介します。 "
1557
1585
1558
1586
#: ../../library/sqlite3.rst:1715
1559
1587
msgid "How to use connection shortcut methods"
0 commit comments