@@ -1238,7 +1238,7 @@ msgstr ""
1238
1238
1239
1239
#: ../../library/sqlite3.rst:1007
1240
1240
msgid "Cursor objects"
1241
- msgstr ""
1241
+ msgstr "Cursor オブジェクト "
1242
1242
1243
1243
#: ../../library/sqlite3.rst:1009
1244
1244
msgid ""
@@ -1247,13 +1247,21 @@ msgid ""
1247
1247
"created using :meth:`Connection.cursor`, or by using any of the :ref:"
1248
1248
"`connection shortcut methods <sqlite3-connection-shortcuts>`."
1249
1249
msgstr ""
1250
+ "``Cursor`` オブジェクトは、 SQL 文を実行し、 取得操作(fetch operation)のコン"
1251
+ "テキストを管理するために使用されるデータベース・カーソル(`database cursor`_)"
1252
+ "を表します。カーソルは、 :meth:`Connection.cursor` または :ref:`接続"
1253
+ "(connection)ショートカット・メソッド <sqlite3-connection-shortcuts>` の、いず"
1254
+ "れかを使用して作成されます。"
1250
1255
1251
1256
#: ../../library/sqlite3.rst:1016
1252
1257
msgid ""
1253
1258
"Cursor objects are :term:`iterators <iterator>`, meaning that if you :meth:"
1254
1259
"`~Cursor.execute` a ``SELECT`` query, you can simply iterate over the cursor "
1255
1260
"to fetch the resulting rows:"
1256
1261
msgstr ""
1262
+ "カーソル・オブジェクトは :term:`イテレータ <iterator>` です。つまり、 "
1263
+ "``SELECT`` クエリに対して :meth:`~Cursor.execute` した場合、結果の行(rows)を"
1264
+ "取得するためには、カーソルを単純に反復(iterate)できます:"
1257
1265
1258
1266
#: ../../library/sqlite3.rst:1041
1259
1267
msgid "A :class:`Cursor` instance has the following attributes and methods."
@@ -1281,6 +1289,10 @@ msgid ""
1281
1289
"no open transaction, a transaction is implicitly opened before executing "
1282
1290
"*sql*."
1283
1291
msgstr ""
1292
+ ":attr:`~Connection.isolation_level` が ``None`` で無い場合、 *sql* は "
1293
+ "``INSERT`` または ``UPDATE`` または ``DELETE`` または ``REPLACE`` 文であり、 "
1294
+ "開いているトランザクションがない場合、 *sql* を実行する前にトランザクションが"
1295
+ "暗黙に開かれます。"
1284
1296
1285
1297
#: ../../library/sqlite3.rst:1066
1286
1298
msgid ""
@@ -1298,23 +1310,33 @@ msgid ""
1298
1310
"implicit transaction control is performed; any transaction control must be "
1299
1311
"added to *sql_script*."
1300
1312
msgstr ""
1313
+ "*sql_script* 内の複数の SQL 文を実行します。 保留中のトランザクションがある場"
1314
+ "合、 暗黙の ``COMMIT`` 文が最初に実行されます。 他の暗黙のトランザクション制"
1315
+ "御は実行されません。 つまり、 *sql_script* にはトランザクション制御を追加する"
1316
+ "必要があります。"
1301
1317
1302
1318
#: ../../library/sqlite3.rst:1091
1303
1319
msgid "*sql_script* must be a :class:`string <str>`."
1304
- msgstr ""
1320
+ msgstr "*sql_script* は :class:`文字列 <str>` でなければなりません。 "
1305
1321
1306
1322
#: ../../library/sqlite3.rst:1109
1307
1323
msgid ""
1308
1324
"If :attr:`~Cursor.row_factory` is ``None``, return the next row query result "
1309
1325
"set as a :class:`tuple`. Else, pass it to the row factory and return its "
1310
1326
"result. Return ``None`` if no more data is available."
1311
1327
msgstr ""
1328
+ ":attr:`~Cursor.row_factory` が ``None`` の場合、 次の行のクエリ結果セットを :"
1329
+ "class:`タプル <tuple>` として返します。それ以外の場合は、 それを行工場(row "
1330
+ "factory)に渡し、 その結果を返します。 これ以上データが無い場合は ``None`` を"
1331
+ "返します。"
1312
1332
1313
1333
#: ../../library/sqlite3.rst:1117
1314
1334
msgid ""
1315
1335
"Return the next set of rows of a query result as a :class:`list`. Return an "
1316
1336
"empty list if no more rows are available."
1317
1337
msgstr ""
1338
+ "クエリ結果の次の行セットを :class:`list` として返します。行がそれ以上ない場合"
1339
+ "は、空のリストを返します。"
1318
1340
1319
1341
#: ../../library/sqlite3.rst:1120
1320
1342
msgid ""
@@ -1323,6 +1345,9 @@ msgid ""
1323
1345
"be fetched. If fewer than *size* rows are available, as many rows as are "
1324
1346
"available are returned."
1325
1347
msgstr ""
1348
+ "呼び出しごとに取得する行数は、*size* パラメーターで指定されます。 *size* が指"
1349
+ "定されていない場合、 :attr:`arraysize` が取得する行数を決定します。有効な行の"
1350
+ "数が *size* 未満の場合は、有効な数の行が返されます。"
1326
1351
1327
1352
#: ../../library/sqlite3.rst:1126
1328
1353
msgid ""
@@ -1333,37 +1358,45 @@ msgid ""
1333
1358
msgstr ""
1334
1359
"*size* 引数とパフォーマンスの関係についての注意です。パフォーマンスを最適化す"
1335
1360
"るためには、大抵、 arraysize 属性を利用するのがベストです。 *size* 引数を利用"
1336
- "したのであれば、次の :meth:`fetchmany` の呼び出しでも同じ数を利用するのがベス "
1337
- "トです 。"
1361
+ "したのであれば、次回の :meth:`fetchmany` の呼び出しでも *size* 引数に同一の値 "
1362
+ "を指定するのがのがベストです 。"
1338
1363
1339
1364
#: ../../library/sqlite3.rst:1133
1340
1365
msgid ""
1341
1366
"Return all (remaining) rows of a query result as a :class:`list`. Return an "
1342
1367
"empty list if no rows are available. Note that the :attr:`arraysize` "
1343
1368
"attribute can affect the performance of this operation."
1344
1369
msgstr ""
1370
+ "クエリ結果の(残りの)すべての行を :class:`list` として返します。 有効な行がな"
1371
+ "い場合は、空のリストを返します。 :attr:`arraysize` 属性は、この操作のパフォー"
1372
+ "マンスに影響を与える可能性があることに注意してください。"
1345
1373
1346
1374
#: ../../library/sqlite3.rst:1140
1347
1375
msgid "Close the cursor now (rather than whenever ``__del__`` is called)."
1348
- msgstr ""
1376
+ msgstr "(``__del__`` が呼び出される時ではなく、) 今すぐカーソルを閉じます。 "
1349
1377
1350
1378
#: ../../library/sqlite3.rst:1142
1351
1379
msgid ""
1352
1380
"The cursor will be unusable from this point forward; a :exc:"
1353
1381
"`ProgrammingError` exception will be raised if any operation is attempted "
1354
1382
"with the cursor."
1355
1383
msgstr ""
1384
+ "この時点から、このカーソルは使用できなくなります。今後、このカーソルで何らか"
1385
+ "の操作を試みると、 :exc:`ProgrammingError` 例外が送出されます。"
1356
1386
1357
1387
#: ../../library/sqlite3.rst:1147 ../../library/sqlite3.rst:1151
1358
1388
msgid "Required by the DB-API. Does nothing in :mod:`!sqlite3`."
1359
- msgstr ""
1389
+ msgstr "DB-API で必要です。 :mod:`!sqlite3` では何もしません。 "
1360
1390
1361
1391
#: ../../library/sqlite3.rst:1155
1362
1392
msgid ""
1363
1393
"Read/write attribute that controls the number of rows returned by :meth:"
1364
1394
"`fetchmany`. The default value is 1 which means a single row would be "
1365
1395
"fetched per call."
1366
1396
msgstr ""
1397
+ "fetchmany によって返される行(row)数を制御する、読み取りと書き込みが可能な属"
1398
+ "性。 デフォルト値は 1 で、これは呼び出しごとに 1 行が取得されることを意味しま"
1399
+ "す。"
1367
1400
1368
1401
#: ../../library/sqlite3.rst:1160
1369
1402
msgid ""
@@ -1372,19 +1405,26 @@ msgid ""
1372
1405
"`con.cursor() <Connection.cursor>` will have a :attr:`connection` attribute "
1373
1406
"that refers to *con*:"
1374
1407
msgstr ""
1408
+ "カーソルが属する SQLite データベース :class:`Connection` を提供する読み取り専"
1409
+ "用属性。 :meth:`con.cursor() <Connection.cursor>` と呼び出して作成した :"
1410
+ "class:`Cursor` オブジェクトには、*con* を参照する :attr:`connection` 属性があ"
1411
+ "ります:"
1375
1412
1376
1413
#: ../../library/sqlite3.rst:1174
1377
1414
msgid ""
1378
1415
"Read-only attribute that provides the column names of the last query. To "
1379
1416
"remain compatible with the Python DB API, it returns a 7-tuple for each "
1380
1417
"column where the last six items of each tuple are ``None``."
1381
1418
msgstr ""
1419
+ "最後のクエリの列(column)名を提供する読み取り専用属性。 Python DB API との互換"
1420
+ "性を維持するために、各列ごとに 7 項目のタプルで、先頭の項目が列名、残りの6項"
1421
+ "目が ``None`` です。"
1382
1422
1383
1423
#: ../../library/sqlite3.rst:1178
1384
1424
msgid "It is set for ``SELECT`` statements without any matching rows as well."
1385
1425
msgstr ""
1386
- "この属性は ``SELECT`` 文にマッチする row が1つもなかった場合でもセットされま "
1387
- "す 。"
1426
+ "この属性は ``SELECT`` 文にマッチする行( row)が1つもなかった場合でもセットされ "
1427
+ "ます 。"
1388
1428
1389
1429
#: ../../library/sqlite3.rst:1182
1390
1430
msgid ""
@@ -1395,10 +1435,15 @@ msgid ""
1395
1435
"``lastrowid`` is left unchanged. The initial value of ``lastrowid`` is "
1396
1436
"``None``."
1397
1437
msgstr ""
1438
+ "最後に挿入された行の行 ID (row id) を提供する読み取り専用属性。 :meth:"
1439
+ "`execute` で ``INSERT`` または ``REPLACE`` 文が成功した後にのみ更新されま"
1440
+ "す。他のSQL文や、 :meth:`executemany` の後や、 :meth:`executescript` の後"
1441
+ "や、 挿入が失敗した場合、 ``lastrowid`` の値は変更されません。``lastrowid`` "
1442
+ "の初期値は ``None`` です。"
1398
1443
1399
1444
#: ../../library/sqlite3.rst:1190
1400
1445
msgid "Inserts into ``WITHOUT ROWID`` tables are not recorded."
1401
- msgstr ""
1446
+ msgstr "``WITHOUT ROWID`` テーブルへの挿入(insert)は記録されません。 "
1402
1447
1403
1448
#: ../../library/sqlite3.rst:1192
1404
1449
msgid "Added support for the ``REPLACE`` statement."
@@ -1412,6 +1457,10 @@ msgid ""
1412
1457
"queries. It is only updated by the :meth:`execute` and :meth:`executemany` "
1413
1458
"methods."
1414
1459
msgstr ""
1460
+ "``INSERT`` や ``UPDATE`` や ``DELETE`` や ``REPLACE`` 文で変更された行数を提"
1461
+ "供する読み取り専用属性。 :abbr:`CTE (共通テーブル式)` クエリを含む他のSQL文"
1462
+ "は ``-1`` です。 :meth:`execute` と :meth:`executemany` メソッドによってのみ"
1463
+ "更新されます。"
1415
1464
1416
1465
#: ../../library/sqlite3.rst:1205
1417
1466
msgid ""
@@ -1421,6 +1470,12 @@ msgid ""
1421
1470
"arguments, a :class:`Cursor` object and the :class:`!tuple` of row values, "
1422
1471
"and returns a custom object representing an SQLite row."
1423
1472
msgstr ""
1473
+ "この :class:`カーソル <!Cursor>` から取得された行の表現方法を制御します。 "
1474
+ "``None`` の場合、行は :class:`タプル <tuple>` として表されます。 :class:"
1475
+ "`sqlite3.Row` に設定でき。そしてまた :class:`Cursor` オブジェクトと、 行の値"
1476
+ "の :class:`タプル <!tuple>` の、 2 つの引数を受け取り、 SQLite の行(row)を表"
1477
+ "すカスタム・オブジェクトを返す、 :term:`呼び出し可能オブジェクト <callable>` "
1478
+ "に設定できます。"
1424
1479
1425
1480
#: ../../library/sqlite3.rst:1212
1426
1481
msgid ""
@@ -1907,7 +1962,7 @@ msgstr ""
1907
1962
1908
1963
#: ../../library/sqlite3.rst:1853
1909
1964
msgid "How to create and use row factories"
1910
- msgstr ""
1965
+ msgstr "行工場(row factories)の作成方法と使用方法 "
1911
1966
1912
1967
#: ../../library/sqlite3.rst:1855
1913
1968
msgid ""
0 commit comments