88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-07-09 08:32 +0900\n "
11+ "POT-Creation-Date : 2018-07-30 08:42 +0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"
Last-Translator :
ww song <[email protected] >, 2018\n "
1414"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -335,8 +335,8 @@ msgstr ""
335335
336336#: ../../library/sqlite3.rst:284
337337msgid ""
338- "Get or set the current isolation level. :const:`None` for autocommit mode or "
339- " one of \" DEFERRED\" , \" IMMEDIATE\" or \" EXCLUSIVE\" . See section "
338+ "Get or set the current default isolation level. :const:`None` for autocommit"
339+ " mode or one of \" DEFERRED\" , \" IMMEDIATE\" or \" EXCLUSIVE\" . See section "
340340":ref:`sqlite3-controlling-transactions` for a more detailed explanation."
341341msgstr ""
342342
@@ -1160,53 +1160,60 @@ msgstr ""
11601160
11611161#: ../../library/sqlite3.rst:1006
11621162msgid ""
1163- "By default, the :mod:`sqlite3` module opens transactions implicitly before a"
1164- " Data Modification Language (DML) statement (i.e. "
1165- "``INSERT``/``UPDATE``/``DELETE``/``REPLACE``)."
1163+ "The underlying ``sqlite3`` library operates in ``autocommit`` mode by "
1164+ "default, but the Python :mod:`sqlite3` module by default does not."
11661165msgstr ""
11671166
1168- #: ../../library/sqlite3.rst:1010
1167+ #: ../../library/sqlite3.rst:1009
11691168msgid ""
1170- "You can control which kind of ``BEGIN`` statements sqlite3 implicitly "
1171- "executes (or none at all) via the *isolation_level* parameter to the "
1172- ":func:`connect` call, or via the :attr:`isolation_level` property of "
1173- "connections ."
1169+ "``autocommit`` mode means that statements that modify the database take "
1170+ "effect immediately. A ``BEGIN`` or ``SAVEPOINT`` statement disables "
1171+ "``autocommit`` mode, and a ``COMMIT``, a ``ROLLBACK``, or a ``RELEASE`` that "
1172+ " ends the outermost transaction, turns ``autocommit`` mode back on ."
11741173msgstr ""
11751174
11761175#: ../../library/sqlite3.rst:1014
11771176msgid ""
1178- "If you want **autocommit mode**, then set :attr:`isolation_level` to "
1179- "``None``."
1177+ "The Python :mod:`sqlite3` module by default issues a ``BEGIN`` statement "
1178+ "implicitly before a Data Modification Language (DML) statement (i.e. "
1179+ "``INSERT``/``UPDATE``/``DELETE``/``REPLACE``)."
11801180msgstr ""
11811181
1182- #: ../../library/sqlite3.rst:1016
1182+ #: ../../library/sqlite3.rst:1018
11831183msgid ""
1184- "Otherwise leave it at its default, which will result in a plain \" BEGIN\" "
1185- "statement, or set it to one of SQLite's supported isolation levels: "
1186- "\" DEFERRED\" , \" IMMEDIATE\" or \" EXCLUSIVE\" ."
1184+ "You can control which kind of ``BEGIN`` statements :mod:`sqlite3` implicitly"
1185+ " executes via the *isolation_level* parameter to the :func:`connect` call, "
1186+ "or via the :attr:`isolation_level` property of connections. If you specify "
1187+ "no *isolation_level*, a plain ``BEGIN`` is used, which is equivalent to "
1188+ "specifying ``DEFERRED``. Other possible values are ``IMMEDIATE`` and "
1189+ "``EXCLUSIVE``."
11871190msgstr ""
11881191
1189- #: ../../library/sqlite3.rst:1020
1192+ #: ../../library/sqlite3.rst:1025
11901193msgid ""
1191- "The current transaction state is exposed through the "
1192- ":attr:`Connection.in_transaction` attribute of the connection object."
1194+ "You can disable the :mod:`sqlite3` module's implicit transaction management "
1195+ "by setting :attr:`isolation_level` to ``None``. This will leave the "
1196+ "underlying ``sqlite3`` library operating in ``autocommit`` mode. You can "
1197+ "then completely control the transaction state by explicitly issuing "
1198+ "``BEGIN``, ``ROLLBACK``, ``SAVEPOINT``, and ``RELEASE`` statements in your "
1199+ "code."
11931200msgstr ""
11941201
1195- #: ../../library/sqlite3.rst:1023
1202+ #: ../../library/sqlite3.rst:1031
11961203msgid ""
11971204":mod:`sqlite3` used to implicitly commit an open transaction before DDL "
11981205"statements. This is no longer the case."
11991206msgstr ""
12001207
1201- #: ../../library/sqlite3.rst:1029
1208+ #: ../../library/sqlite3.rst:1037
12021209msgid "Using :mod:`sqlite3` efficiently"
12031210msgstr ""
12041211
1205- #: ../../library/sqlite3.rst:1033
1212+ #: ../../library/sqlite3.rst:1041
12061213msgid "Using shortcut methods"
12071214msgstr ""
12081215
1209- #: ../../library/sqlite3.rst:1035
1216+ #: ../../library/sqlite3.rst:1043
12101217msgid ""
12111218"Using the nonstandard :meth:`execute`, :meth:`executemany` and "
12121219":meth:`executescript` methods of the :class:`Connection` object, your code "
@@ -1218,60 +1225,60 @@ msgid ""
12181225":class:`Connection` object."
12191226msgstr ""
12201227
1221- #: ../../library/sqlite3.rst:1047
1228+ #: ../../library/sqlite3.rst:1055
12221229msgid "Accessing columns by name instead of by index"
12231230msgstr ""
12241231
1225- #: ../../library/sqlite3.rst:1049
1232+ #: ../../library/sqlite3.rst:1057
12261233msgid ""
12271234"One useful feature of the :mod:`sqlite3` module is the built-in "
12281235":class:`sqlite3.Row` class designed to be used as a row factory."
12291236msgstr ""
12301237
1231- #: ../../library/sqlite3.rst:1052
1238+ #: ../../library/sqlite3.rst:1060
12321239msgid ""
12331240"Rows wrapped with this class can be accessed both by index (like tuples) and"
12341241" case-insensitively by name:"
12351242msgstr ""
12361243
1237- #: ../../library/sqlite3.rst:1059
1244+ #: ../../library/sqlite3.rst:1067
12381245msgid "Using the connection as a context manager"
12391246msgstr ""
12401247
1241- #: ../../library/sqlite3.rst:1061
1248+ #: ../../library/sqlite3.rst:1069
12421249msgid ""
12431250"Connection objects can be used as context managers that automatically commit"
12441251" or rollback transactions. In the event of an exception, the transaction is"
12451252" rolled back; otherwise, the transaction is committed:"
12461253msgstr ""
12471254
1248- #: ../../library/sqlite3.rst:1070
1255+ #: ../../library/sqlite3.rst:1078
12491256msgid "Common issues"
12501257msgstr ""
12511258
1252- #: ../../library/sqlite3.rst:1073
1259+ #: ../../library/sqlite3.rst:1081
12531260msgid "Multithreading"
12541261msgstr ""
12551262
1256- #: ../../library/sqlite3.rst:1075
1263+ #: ../../library/sqlite3.rst:1083
12571264msgid ""
12581265"Older SQLite versions had issues with sharing connections between threads. "
12591266"That's why the Python module disallows sharing connections and cursors "
12601267"between threads. If you still try to do so, you will get an exception at "
12611268"runtime."
12621269msgstr ""
12631270
1264- #: ../../library/sqlite3.rst:1079
1271+ #: ../../library/sqlite3.rst:1087
12651272msgid ""
12661273"The only exception is calling the :meth:`~Connection.interrupt` method, "
12671274"which only makes sense to call from a different thread."
12681275msgstr ""
12691276
1270- #: ../../library/sqlite3.rst:1083
1277+ #: ../../library/sqlite3.rst:1091
12711278msgid "Footnotes"
12721279msgstr "脚注"
12731280
1274- #: ../../library/sqlite3.rst:1084
1281+ #: ../../library/sqlite3.rst:1092
12751282msgid ""
12761283"The sqlite3 module is not built with loadable extension support by default, "
12771284"because some platforms (notably Mac OS X) have SQLite libraries which are "
0 commit comments