@@ -1238,7 +1238,7 @@ msgstr ""
12381238
12391239#: ../../library/sqlite3.rst:1007
12401240msgid "Cursor objects"
1241- msgstr ""
1241+ msgstr "Cursor オブジェクト "
12421242
12431243#: ../../library/sqlite3.rst:1009
12441244msgid ""
@@ -1247,13 +1247,21 @@ msgid ""
12471247"created using :meth:`Connection.cursor`, or by using any of the :ref:"
12481248"`connection shortcut methods <sqlite3-connection-shortcuts>`."
12491249msgstr ""
1250+ "``Cursor`` オブジェクトは、 SQL 文を実行し、 取得操作(fetch operation)のコン"
1251+ "テキストを管理するために使用されるデータベース・カーソル(`database cursor`_)"
1252+ "を表します。カーソルは、 :meth:`Connection.cursor` または :ref:`接続"
1253+ "(connection)ショートカット・メソッド <sqlite3-connection-shortcuts>` の、いず"
1254+ "れかを使用して作成されます。"
12501255
12511256#: ../../library/sqlite3.rst:1016
12521257msgid ""
12531258"Cursor objects are :term:`iterators <iterator>`, meaning that if you :meth:"
12541259"`~Cursor.execute` a ``SELECT`` query, you can simply iterate over the cursor "
12551260"to fetch the resulting rows:"
12561261msgstr ""
1262+ "カーソル・オブジェクトは :term:`イテレータ <iterator>` です。つまり、 "
1263+ "``SELECT`` クエリに対して :meth:`~Cursor.execute` した場合、結果の行(rows)を"
1264+ "取得するためには、カーソルを単純に反復(iterate)できます:"
12571265
12581266#: ../../library/sqlite3.rst:1041
12591267msgid "A :class:`Cursor` instance has the following attributes and methods."
@@ -1281,6 +1289,10 @@ msgid ""
12811289"no open transaction, a transaction is implicitly opened before executing "
12821290"*sql*."
12831291msgstr ""
1292+ ":attr:`~Connection.isolation_level` が ``None`` で無い場合、 *sql* は "
1293+ "``INSERT`` または ``UPDATE`` または ``DELETE`` または ``REPLACE`` 文であり、 "
1294+ "開いているトランザクションがない場合、 *sql* を実行する前にトランザクションが"
1295+ "暗黙に開かれます。"
12841296
12851297#: ../../library/sqlite3.rst:1066
12861298msgid ""
@@ -1298,23 +1310,33 @@ msgid ""
12981310"implicit transaction control is performed; any transaction control must be "
12991311"added to *sql_script*."
13001312msgstr ""
1313+ "*sql_script* 内の複数の SQL 文を実行します。 保留中のトランザクションがある場"
1314+ "合、 暗黙の ``COMMIT`` 文が最初に実行されます。 他の暗黙のトランザクション制"
1315+ "御は実行されません。 つまり、 *sql_script* にはトランザクション制御を追加する"
1316+ "必要があります。"
13011317
13021318#: ../../library/sqlite3.rst:1091
13031319msgid "*sql_script* must be a :class:`string <str>`."
1304- msgstr ""
1320+ msgstr "*sql_script* は :class:`文字列 <str>` でなければなりません。 "
13051321
13061322#: ../../library/sqlite3.rst:1109
13071323msgid ""
13081324"If :attr:`~Cursor.row_factory` is ``None``, return the next row query result "
13091325"set as a :class:`tuple`. Else, pass it to the row factory and return its "
13101326"result. Return ``None`` if no more data is available."
13111327msgstr ""
1328+ ":attr:`~Cursor.row_factory` が ``None`` の場合、 次の行のクエリ結果セットを :"
1329+ "class:`タプル <tuple>` として返します。それ以外の場合は、 それを行工場(row "
1330+ "factory)に渡し、 その結果を返します。 これ以上データが無い場合は ``None`` を"
1331+ "返します。"
13121332
13131333#: ../../library/sqlite3.rst:1117
13141334msgid ""
13151335"Return the next set of rows of a query result as a :class:`list`. Return an "
13161336"empty list if no more rows are available."
13171337msgstr ""
1338+ "クエリ結果の次の行セットを :class:`list` として返します。行がそれ以上ない場合"
1339+ "は、空のリストを返します。"
13181340
13191341#: ../../library/sqlite3.rst:1120
13201342msgid ""
@@ -1323,6 +1345,9 @@ msgid ""
13231345"be fetched. If fewer than *size* rows are available, as many rows as are "
13241346"available are returned."
13251347msgstr ""
1348+ "呼び出しごとに取得する行数は、*size* パラメーターで指定されます。 *size* が指"
1349+ "定されていない場合、 :attr:`arraysize` が取得する行数を決定します。有効な行の"
1350+ "数が *size* 未満の場合は、有効な数の行が返されます。"
13261351
13271352#: ../../library/sqlite3.rst:1126
13281353msgid ""
@@ -1333,37 +1358,45 @@ msgid ""
13331358msgstr ""
13341359"*size* 引数とパフォーマンスの関係についての注意です。パフォーマンスを最適化す"
13351360"るためには、大抵、 arraysize 属性を利用するのがベストです。 *size* 引数を利用"
1336- "したのであれば、次の :meth:`fetchmany` の呼び出しでも同じ数を利用するのがベス "
1337- "トです 。"
1361+ "したのであれば、次回の :meth:`fetchmany` の呼び出しでも *size* 引数に同一の値 "
1362+ "を指定するのがのがベストです 。"
13381363
13391364#: ../../library/sqlite3.rst:1133
13401365msgid ""
13411366"Return all (remaining) rows of a query result as a :class:`list`. Return an "
13421367"empty list if no rows are available. Note that the :attr:`arraysize` "
13431368"attribute can affect the performance of this operation."
13441369msgstr ""
1370+ "クエリ結果の(残りの)すべての行を :class:`list` として返します。 有効な行がな"
1371+ "い場合は、空のリストを返します。 :attr:`arraysize` 属性は、この操作のパフォー"
1372+ "マンスに影響を与える可能性があることに注意してください。"
13451373
13461374#: ../../library/sqlite3.rst:1140
13471375msgid "Close the cursor now (rather than whenever ``__del__`` is called)."
1348- msgstr ""
1376+ msgstr "(``__del__`` が呼び出される時ではなく、) 今すぐカーソルを閉じます。 "
13491377
13501378#: ../../library/sqlite3.rst:1142
13511379msgid ""
13521380"The cursor will be unusable from this point forward; a :exc:"
13531381"`ProgrammingError` exception will be raised if any operation is attempted "
13541382"with the cursor."
13551383msgstr ""
1384+ "この時点から、このカーソルは使用できなくなります。今後、このカーソルで何らか"
1385+ "の操作を試みると、 :exc:`ProgrammingError` 例外が送出されます。"
13561386
13571387#: ../../library/sqlite3.rst:1147 ../../library/sqlite3.rst:1151
13581388msgid "Required by the DB-API. Does nothing in :mod:`!sqlite3`."
1359- msgstr ""
1389+ msgstr "DB-API で必要です。 :mod:`!sqlite3` では何もしません。 "
13601390
13611391#: ../../library/sqlite3.rst:1155
13621392msgid ""
13631393"Read/write attribute that controls the number of rows returned by :meth:"
13641394"`fetchmany`. The default value is 1 which means a single row would be "
13651395"fetched per call."
13661396msgstr ""
1397+ "fetchmany によって返される行(row)数を制御する、読み取りと書き込みが可能な属"
1398+ "性。 デフォルト値は 1 で、これは呼び出しごとに 1 行が取得されることを意味しま"
1399+ "す。"
13671400
13681401#: ../../library/sqlite3.rst:1160
13691402msgid ""
@@ -1372,19 +1405,26 @@ msgid ""
13721405"`con.cursor() <Connection.cursor>` will have a :attr:`connection` attribute "
13731406"that refers to *con*:"
13741407msgstr ""
1408+ "カーソルが属する SQLite データベース :class:`Connection` を提供する読み取り専"
1409+ "用属性。 :meth:`con.cursor() <Connection.cursor>` と呼び出して作成した :"
1410+ "class:`Cursor` オブジェクトには、*con* を参照する :attr:`connection` 属性があ"
1411+ "ります:"
13751412
13761413#: ../../library/sqlite3.rst:1174
13771414msgid ""
13781415"Read-only attribute that provides the column names of the last query. To "
13791416"remain compatible with the Python DB API, it returns a 7-tuple for each "
13801417"column where the last six items of each tuple are ``None``."
13811418msgstr ""
1419+ "最後のクエリの列(column)名を提供する読み取り専用属性。 Python DB API との互換"
1420+ "性を維持するために、各列ごとに 7 項目のタプルで、先頭の項目が列名、残りの6項"
1421+ "目が ``None`` です。"
13821422
13831423#: ../../library/sqlite3.rst:1178
13841424msgid "It is set for ``SELECT`` statements without any matching rows as well."
13851425msgstr ""
1386- "この属性は ``SELECT`` 文にマッチする row が1つもなかった場合でもセットされま "
1387- "す 。"
1426+ "この属性は ``SELECT`` 文にマッチする行( row)が1つもなかった場合でもセットされ "
1427+ "ます 。"
13881428
13891429#: ../../library/sqlite3.rst:1182
13901430msgid ""
@@ -1395,10 +1435,15 @@ msgid ""
13951435"``lastrowid`` is left unchanged. The initial value of ``lastrowid`` is "
13961436"``None``."
13971437msgstr ""
1438+ "最後に挿入された行の行 ID (row id) を提供する読み取り専用属性。 :meth:"
1439+ "`execute` で ``INSERT`` または ``REPLACE`` 文が成功した後にのみ更新されま"
1440+ "す。他のSQL文や、 :meth:`executemany` の後や、 :meth:`executescript` の後"
1441+ "や、 挿入が失敗した場合、 ``lastrowid`` の値は変更されません。``lastrowid`` "
1442+ "の初期値は ``None`` です。"
13981443
13991444#: ../../library/sqlite3.rst:1190
14001445msgid "Inserts into ``WITHOUT ROWID`` tables are not recorded."
1401- msgstr ""
1446+ msgstr "``WITHOUT ROWID`` テーブルへの挿入(insert)は記録されません。 "
14021447
14031448#: ../../library/sqlite3.rst:1192
14041449msgid "Added support for the ``REPLACE`` statement."
@@ -1412,6 +1457,10 @@ msgid ""
14121457"queries. It is only updated by the :meth:`execute` and :meth:`executemany` "
14131458"methods."
14141459msgstr ""
1460+ "``INSERT`` や ``UPDATE`` や ``DELETE`` や ``REPLACE`` 文で変更された行数を提"
1461+ "供する読み取り専用属性。 :abbr:`CTE (共通テーブル式)` クエリを含む他のSQL文"
1462+ "は ``-1`` です。 :meth:`execute` と :meth:`executemany` メソッドによってのみ"
1463+ "更新されます。"
14151464
14161465#: ../../library/sqlite3.rst:1205
14171466msgid ""
@@ -1421,6 +1470,12 @@ msgid ""
14211470"arguments, a :class:`Cursor` object and the :class:`!tuple` of row values, "
14221471"and returns a custom object representing an SQLite row."
14231472msgstr ""
1473+ "この :class:`カーソル <!Cursor>` から取得された行の表現方法を制御します。 "
1474+ "``None`` の場合、行は :class:`タプル <tuple>` として表されます。 :class:"
1475+ "`sqlite3.Row` に設定でき。そしてまた :class:`Cursor` オブジェクトと、 行の値"
1476+ "の :class:`タプル <!tuple>` の、 2 つの引数を受け取り、 SQLite の行(row)を表"
1477+ "すカスタム・オブジェクトを返す、 :term:`呼び出し可能オブジェクト <callable>` "
1478+ "に設定できます。"
14241479
14251480#: ../../library/sqlite3.rst:1212
14261481msgid ""
@@ -1907,7 +1962,7 @@ msgstr ""
19071962
19081963#: ../../library/sqlite3.rst:1853
19091964msgid "How to create and use row factories"
1910- msgstr ""
1965+ msgstr "行工場(row factories)の作成方法と使用方法 "
19111966
19121967#: ../../library/sqlite3.rst:1855
19131968msgid ""
0 commit comments