Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a66f72

Browse files
[po] auto sync
1 parent 220ef98 commit 2a66f72

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

library/sqlite3.po

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,17 @@ msgid ""
931931
"includes ``SELECT`` statements because we cannot determine the number of "
932932
"rows a query produced until all rows were fetched."
933933
msgstr ""
934+
"根据 Python DB API 规格描述的要求,:attr:`rowcount` 属性 \"当未在 cursor 上执行 "
935+
"``executeXX()`` 或者上一次操作的 rowcount 不是由接口确定时为 -1\"。 这包括 ``SELECT`` "
936+
"语句,因为我们无法确定一次查询将产生的行计数,而要等获取了所有行时才会知道。"
934937

935938
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:703
936939
msgid ""
937940
"With SQLite versions before 3.6.5, :attr:`rowcount` is set to 0 if you make "
938941
"a ``DELETE FROM table`` without any condition."
939942
msgstr ""
943+
"在 SQLite 的 3.6.5 版之前,如果你执行 ``DELETE FROM table`` 时不附带任何条件,则 :attr:`rowcount`"
944+
" 将被设为 0。"
940945

941946
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:708
942947
msgid ""
@@ -946,12 +951,15 @@ msgid ""
946951
" or when :meth:`executemany` is called, :attr:`lastrowid` is set to "
947952
":const:`None`."
948953
msgstr ""
954+
"这个只读属性会提供最近修改行的 rowid。 它只在你使用 :meth:`execute` 方法执行 ``INSERT`` 或 ``REPLACE`` "
955+
"语句时会被设置。 对于 ``INSERT`` 或 ``REPLACE`` 以外的操作或者当 :meth:`executemany` "
956+
"被调用时,:attr:`lastrowid` 会被设为 :const:`None`。"
949957

950958
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:714
951959
msgid ""
952960
"If the ``INSERT`` or ``REPLACE`` statement failed to insert the previous "
953961
"successful rowid is returned."
954-
msgstr ""
962+
msgstr "如果 ``INSERT`` 或 ``REPLACE`` 语句操作失败则将返回上一次成功操作的 rowid。"
955963

956964
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:717
957965
msgid "Added support for the ``REPLACE`` statement."
@@ -962,18 +970,20 @@ msgid ""
962970
"Read/write attribute that controls the number of rows returned by "
963971
":meth:`fetchmany`. The default value is 1 which means a single row would be "
964972
"fetched per call."
965-
msgstr ""
973+
msgstr "用于控制 :meth:`fetchmany` 返回行数的可读取/写入属性。 该属性的默认值为 1,表示每次调用将获取单独一行。"
966974

967975
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:727
968976
msgid ""
969977
"This read-only attribute provides the column names of the last query. To "
970978
"remain compatible with the Python DB API, it returns a 7-tuple for each "
971979
"column where the last six items of each tuple are :const:`None`."
972980
msgstr ""
981+
"这个只读属性将提供上一次查询的列名称。 为了与 Python DB API 保持兼容,它会为每个列返回一个 7 元组,每个元组的最后六个条目均为 "
982+
":const:`None`。"
973983

974984
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:731
975985
msgid "It is set for ``SELECT`` statements without any matching rows as well."
976-
msgstr ""
986+
msgstr "对于没有任何匹配行的 ``SELECT`` 语句同样会设置该属性。"
977987

978988
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:735
979989
msgid ""
@@ -982,6 +992,9 @@ msgid ""
982992
"calling :meth:`con.cursor() <Connection.cursor>` will have a "
983993
":attr:`connection` attribute that refers to *con*::"
984994
msgstr ""
995+
"这个只读属性将提供 :class:`Cursor` 对象所使用的 SQLite 数据库 :class:`Connection`。 通过调用 "
996+
":meth:`con.cursor() <Connection.cursor>` 创建的 :class:`Cursor` 对象所包含的 "
997+
":attr:`connection` 属性将指向 *con*::"
985998

986999
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:748
9871000
msgid "Row Objects"
@@ -993,28 +1006,30 @@ msgid ""
9931006
":attr:`~Connection.row_factory` for :class:`Connection` objects. It tries to"
9941007
" mimic a tuple in most of its features."
9951008
msgstr ""
1009+
"一个 :class:`Row` 实例,该实例将作为用于 :class:`Connection` 对象的高度优化的 "
1010+
":attr:`~Connection.row_factory`。 它的大部分行为都会模仿元组的特性。"
9961011

9971012
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:756
9981013
msgid ""
9991014
"It supports mapping access by column name and index, iteration, "
10001015
"representation, equality testing and :func:`len`."
1001-
msgstr ""
1016+
msgstr "它支持使用列名称的映射访问以及索引、迭代、文本表示、相等检测和 :func:`len` 等操作。"
10021017

10031018
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:759
10041019
msgid ""
10051020
"If two :class:`Row` objects have exactly the same columns and their members "
10061021
"are equal, they compare equal."
1007-
msgstr ""
1022+
msgstr "如果两个 :class:`Row` 对象具有完全相同的列并且其成员均相等,则它们的比较结果为相等。"
10081023

10091024
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:764
10101025
msgid ""
10111026
"This method returns a list of column names. Immediately after a query, it is"
10121027
" the first member of each tuple in :attr:`Cursor.description`."
1013-
msgstr ""
1028+
msgstr "此方法会在一次查询之后立即返回一个列名称的列表,它是 :attr:`Cursor.description` 中每个元组的第一个成员。"
10141029

10151030
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:767
10161031
msgid "Added support of slicing."
1017-
msgstr ""
1032+
msgstr "添加了对切片操作的支持。"
10181033

10191034
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:770
10201035
msgid "Let's assume we initialize a table as in the example given above::"

0 commit comments

Comments
 (0)