Skip to content

Commit d5df085

Browse files
sync with cpython db65a326
1 parent 576dd20 commit d5df085

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

library/sqlite3.po

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-01-15 00:34+0000\n"
10+
"POT-Creation-Date: 2023-01-19 00:32+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:10+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1774,24 +1774,24 @@ msgid ""
17741774
"are ignored. Here's an example of both styles:"
17751775
msgstr ""
17761776

1777-
#: ../../library/sqlite3.rst:1866
1777+
#: ../../library/sqlite3.rst:1865
17781778
msgid ""
17791779
":pep:`249` numeric placeholders are *not* supported. If used, they will be "
17801780
"interpreted as named placeholders."
17811781
msgstr ""
17821782

1783-
#: ../../library/sqlite3.rst:1873
1783+
#: ../../library/sqlite3.rst:1872
17841784
msgid "How to adapt custom Python types to SQLite values"
17851785
msgstr ""
17861786

1787-
#: ../../library/sqlite3.rst:1875
1787+
#: ../../library/sqlite3.rst:1874
17881788
msgid ""
17891789
"SQLite supports only a limited set of data types natively. To store custom "
17901790
"Python types in SQLite databases, *adapt* them to one of the :ref:`Python "
17911791
"types SQLite natively understands <sqlite3-types>`."
17921792
msgstr ""
17931793

1794-
#: ../../library/sqlite3.rst:1879
1794+
#: ../../library/sqlite3.rst:1878
17951795
msgid ""
17961796
"There are two ways to adapt Python objects to SQLite types: letting your "
17971797
"object adapt itself, or using an *adapter callable*. The latter will take "
@@ -1801,11 +1801,11 @@ msgid ""
18011801
"custom adapter functions."
18021802
msgstr ""
18031803

1804-
#: ../../library/sqlite3.rst:1891
1804+
#: ../../library/sqlite3.rst:1890
18051805
msgid "How to write adaptable objects"
18061806
msgstr ""
18071807

1808-
#: ../../library/sqlite3.rst:1893
1808+
#: ../../library/sqlite3.rst:1892
18091809
msgid ""
18101810
"Suppose we have a :class:`!Point` class that represents a pair of "
18111811
"coordinates, ``x`` and ``y``, in a Cartesian coordinate system. The "
@@ -1815,84 +1815,84 @@ msgid ""
18151815
"object passed to *protocol* will be of type :class:`PrepareProtocol`."
18161816
msgstr ""
18171817

1818-
#: ../../library/sqlite3.rst:1924
1818+
#: ../../library/sqlite3.rst:1923
18191819
msgid "How to register adapter callables"
18201820
msgstr ""
18211821

1822-
#: ../../library/sqlite3.rst:1926
1822+
#: ../../library/sqlite3.rst:1925
18231823
msgid ""
18241824
"The other possibility is to create a function that converts the Python "
18251825
"object to an SQLite-compatible type. This function can then be registered "
18261826
"using :func:`register_adapter`."
18271827
msgstr ""
18281828

1829-
#: ../../library/sqlite3.rst:1956
1829+
#: ../../library/sqlite3.rst:1955
18301830
msgid "How to convert SQLite values to custom Python types"
18311831
msgstr ""
18321832

1833-
#: ../../library/sqlite3.rst:1958
1833+
#: ../../library/sqlite3.rst:1957
18341834
msgid ""
18351835
"Writing an adapter lets you convert *from* custom Python types *to* SQLite "
18361836
"values. To be able to convert *from* SQLite values *to* custom Python types, "
18371837
"we use *converters*."
18381838
msgstr ""
18391839

1840-
#: ../../library/sqlite3.rst:1963
1840+
#: ../../library/sqlite3.rst:1962
18411841
msgid ""
18421842
"Let's go back to the :class:`!Point` class. We stored the x and y "
18431843
"coordinates separated via semicolons as strings in SQLite."
18441844
msgstr ""
18451845

1846-
#: ../../library/sqlite3.rst:1966
1846+
#: ../../library/sqlite3.rst:1965
18471847
msgid ""
18481848
"First, we'll define a converter function that accepts the string as a "
18491849
"parameter and constructs a :class:`!Point` object from it."
18501850
msgstr ""
18511851

1852-
#: ../../library/sqlite3.rst:1971
1852+
#: ../../library/sqlite3.rst:1970
18531853
msgid ""
18541854
"Converter functions are **always** passed a :class:`bytes` object, no matter "
18551855
"the underlying SQLite data type."
18561856
msgstr ""
18571857

1858-
#: ../../library/sqlite3.rst:1980
1858+
#: ../../library/sqlite3.rst:1979
18591859
msgid ""
18601860
"We now need to tell :mod:`!sqlite3` when it should convert a given SQLite "
18611861
"value. This is done when connecting to a database, using the *detect_types* "
18621862
"parameter of :func:`connect`. There are three options:"
18631863
msgstr ""
18641864

1865-
#: ../../library/sqlite3.rst:1984
1865+
#: ../../library/sqlite3.rst:1983
18661866
msgid "Implicit: set *detect_types* to :const:`PARSE_DECLTYPES`"
18671867
msgstr ""
18681868

1869-
#: ../../library/sqlite3.rst:1985
1869+
#: ../../library/sqlite3.rst:1984
18701870
msgid "Explicit: set *detect_types* to :const:`PARSE_COLNAMES`"
18711871
msgstr ""
18721872

1873-
#: ../../library/sqlite3.rst:1986
1873+
#: ../../library/sqlite3.rst:1985
18741874
msgid ""
18751875
"Both: set *detect_types* to ``sqlite3.PARSE_DECLTYPES | sqlite3."
18761876
"PARSE_COLNAMES``. Column names take precedence over declared types."
18771877
msgstr ""
18781878

1879-
#: ../../library/sqlite3.rst:1990
1879+
#: ../../library/sqlite3.rst:1989
18801880
msgid "The following example illustrates the implicit and explicit approaches:"
18811881
msgstr ""
18821882

1883-
#: ../../library/sqlite3.rst:2041
1883+
#: ../../library/sqlite3.rst:2040
18841884
msgid "Adapter and converter recipes"
18851885
msgstr ""
18861886

1887-
#: ../../library/sqlite3.rst:2043
1887+
#: ../../library/sqlite3.rst:2042
18881888
msgid "This section shows recipes for common adapters and converters."
18891889
msgstr ""
18901890

1891-
#: ../../library/sqlite3.rst:2105
1891+
#: ../../library/sqlite3.rst:2104
18921892
msgid "How to use connection shortcut methods"
18931893
msgstr ""
18941894

1895-
#: ../../library/sqlite3.rst:2107
1895+
#: ../../library/sqlite3.rst:2106
18961896
msgid ""
18971897
"Using the :meth:`~Connection.execute`, :meth:`~Connection.executemany`, and :"
18981898
"meth:`~Connection.executescript` methods of the :class:`Connection` class, "
@@ -1904,11 +1904,11 @@ msgid ""
19041904
"object."
19051905
msgstr ""
19061906

1907-
#: ../../library/sqlite3.rst:2148
1907+
#: ../../library/sqlite3.rst:2147
19081908
msgid "How to use the connection context manager"
19091909
msgstr ""
19101910

1911-
#: ../../library/sqlite3.rst:2150
1911+
#: ../../library/sqlite3.rst:2149
19121912
msgid ""
19131913
"A :class:`Connection` object can be used as a context manager that "
19141914
"automatically commits or rolls back open transactions when leaving the body "
@@ -1918,118 +1918,118 @@ msgid ""
19181918
"exception, the transaction is rolled back."
19191919
msgstr ""
19201920

1921-
#: ../../library/sqlite3.rst:2159
1921+
#: ../../library/sqlite3.rst:2158
19221922
msgid ""
19231923
"If there is no open transaction upon leaving the body of the ``with`` "
19241924
"statement, the context manager is a no-op."
19251925
msgstr ""
19261926

1927-
#: ../../library/sqlite3.rst:2164
1927+
#: ../../library/sqlite3.rst:2163
19281928
msgid ""
19291929
"The context manager neither implicitly opens a new transaction nor closes "
19301930
"the connection."
19311931
msgstr ""
19321932

1933-
#: ../../library/sqlite3.rst:2197
1933+
#: ../../library/sqlite3.rst:2196
19341934
msgid "How to work with SQLite URIs"
19351935
msgstr ""
19361936

1937-
#: ../../library/sqlite3.rst:2199
1937+
#: ../../library/sqlite3.rst:2198
19381938
msgid "Some useful URI tricks include:"
19391939
msgstr ""
19401940

1941-
#: ../../library/sqlite3.rst:2201
1941+
#: ../../library/sqlite3.rst:2200
19421942
msgid "Open a database in read-only mode:"
19431943
msgstr ""
19441944

1945-
#: ../../library/sqlite3.rst:2210
1945+
#: ../../library/sqlite3.rst:2209
19461946
msgid ""
19471947
"Do not implicitly create a new database file if it does not already exist; "
19481948
"will raise :exc:`~sqlite3.OperationalError` if unable to create a new file:"
19491949
msgstr ""
19501950

1951-
#: ../../library/sqlite3.rst:2220
1951+
#: ../../library/sqlite3.rst:2219
19521952
msgid "Create a shared named in-memory database:"
19531953
msgstr ""
19541954

1955-
#: ../../library/sqlite3.rst:2234
1955+
#: ../../library/sqlite3.rst:2233
19561956
msgid ""
19571957
"More information about this feature, including a list of parameters, can be "
19581958
"found in the `SQLite URI documentation`_."
19591959
msgstr ""
19601960

1961-
#: ../../library/sqlite3.rst:2243
1961+
#: ../../library/sqlite3.rst:2242
19621962
msgid "How to create and use row factories"
19631963
msgstr ""
19641964

1965-
#: ../../library/sqlite3.rst:2245
1965+
#: ../../library/sqlite3.rst:2244
19661966
msgid ""
19671967
"By default, :mod:`!sqlite3` represents each row as a :class:`tuple`. If a :"
19681968
"class:`!tuple` does not suit your needs, you can use the :class:`sqlite3."
19691969
"Row` class or a custom :attr:`~Cursor.row_factory`."
19701970
msgstr ""
19711971

1972-
#: ../../library/sqlite3.rst:2250
1972+
#: ../../library/sqlite3.rst:2249
19731973
msgid ""
19741974
"While :attr:`!row_factory` exists as an attribute both on the :class:"
19751975
"`Cursor` and the :class:`Connection`, it is recommended to set :class:"
19761976
"`Connection.row_factory`, so all cursors created from the connection will "
19771977
"use the same row factory."
19781978
msgstr ""
19791979

1980-
#: ../../library/sqlite3.rst:2255
1980+
#: ../../library/sqlite3.rst:2254
19811981
msgid ""
19821982
":class:`!Row` provides indexed and case-insensitive named access to columns, "
19831983
"with minimal memory overhead and performance impact over a :class:`!tuple`. "
19841984
"To use :class:`!Row` as a row factory, assign it to the :attr:`!row_factory` "
19851985
"attribute:"
19861986
msgstr ""
19871987

1988-
#: ../../library/sqlite3.rst:2265
1988+
#: ../../library/sqlite3.rst:2264
19891989
msgid "Queries now return :class:`!Row` objects:"
19901990
msgstr ""
19911991

1992-
#: ../../library/sqlite3.rst:2280
1992+
#: ../../library/sqlite3.rst:2279
19931993
msgid ""
19941994
"You can create a custom :attr:`~Cursor.row_factory` that returns each row as "
19951995
"a :class:`dict`, with column names mapped to values:"
19961996
msgstr ""
19971997

1998-
#: ../../library/sqlite3.rst:2289
1998+
#: ../../library/sqlite3.rst:2288
19991999
msgid ""
20002000
"Using it, queries now return a :class:`!dict` instead of a :class:`!tuple`:"
20012001
msgstr ""
20022002

2003-
#: ../../library/sqlite3.rst:2299
2003+
#: ../../library/sqlite3.rst:2298
20042004
msgid "The following row factory returns a :term:`named tuple`:"
20052005
msgstr ""
20062006

2007-
#: ../../library/sqlite3.rst:2310
2007+
#: ../../library/sqlite3.rst:2309
20082008
msgid ":func:`!namedtuple_factory` can be used as follows:"
20092009
msgstr ""
20102010

2011-
#: ../../library/sqlite3.rst:2325
2011+
#: ../../library/sqlite3.rst:2324
20122012
msgid ""
20132013
"With some adjustments, the above recipe can be adapted to use a :class:"
20142014
"`~dataclasses.dataclass`, or any other custom class, instead of a :class:"
20152015
"`~collections.namedtuple`."
20162016
msgstr ""
20172017

2018-
#: ../../library/sqlite3.rst:2333
2018+
#: ../../library/sqlite3.rst:2332
20192019
msgid "Explanation"
20202020
msgstr "解釋"
20212021

2022-
#: ../../library/sqlite3.rst:2338
2022+
#: ../../library/sqlite3.rst:2337
20232023
msgid "Transaction control"
20242024
msgstr ""
20252025

2026-
#: ../../library/sqlite3.rst:2340
2026+
#: ../../library/sqlite3.rst:2339
20272027
msgid ""
20282028
"The :mod:`!sqlite3` module does not adhere to the transaction handling "
20292029
"recommended by :pep:`249`."
20302030
msgstr ""
20312031

2032-
#: ../../library/sqlite3.rst:2343
2032+
#: ../../library/sqlite3.rst:2342
20332033
msgid ""
20342034
"If the connection attribute :attr:`~Connection.isolation_level` is not "
20352035
"``None``, new transactions are implicitly opened before :meth:`~Cursor."
@@ -2043,7 +2043,7 @@ msgid ""
20432043
"attribute."
20442044
msgstr ""
20452045

2046-
#: ../../library/sqlite3.rst:2356
2046+
#: ../../library/sqlite3.rst:2355
20472047
msgid ""
20482048
"If :attr:`~Connection.isolation_level` is set to ``None``, no transactions "
20492049
"are implicitly opened at all. This leaves the underlying SQLite library in "
@@ -2053,14 +2053,14 @@ msgid ""
20532053
"in_transaction` attribute."
20542054
msgstr ""
20552055

2056-
#: ../../library/sqlite3.rst:2364
2056+
#: ../../library/sqlite3.rst:2363
20572057
msgid ""
20582058
"The :meth:`~Cursor.executescript` method implicitly commits any pending "
20592059
"transaction before execution of the given SQL script, regardless of the "
20602060
"value of :attr:`~Connection.isolation_level`."
20612061
msgstr ""
20622062

2063-
#: ../../library/sqlite3.rst:2368
2063+
#: ../../library/sqlite3.rst:2367
20642064
msgid ""
20652065
":mod:`!sqlite3` used to implicitly commit an open transaction before DDL "
20662066
"statements. This is no longer the case."

0 commit comments

Comments
 (0)