diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-18 18:10:36 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-18 18:10:36 (GMT) |
commit | 62564dbb4b4a882d4702111ba43bb5b204945a62 (patch) | |
tree | 3259ac3dfdb017d26e9bdaaf261487fc058ae0e1 | |
parent | e4044bfe63a239cad9d4c51b02c256c2a160eb66 (diff) | |
download | cpython-62564dbb4b4a882d4702111ba43bb5b204945a62.zip cpython-62564dbb4b4a882d4702111ba43bb5b204945a62.tar.gz cpython-62564dbb4b4a882d4702111ba43bb5b204945a62.tar.bz2 |
#26250: document the sqlite3.Cursor.connection attribute. Initial patches by Aviv Palivoda and Varpu Rantala.
-rw-r--r-- | Doc/library/sqlite3.rst | 12 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index b14ea72..aee444b 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -627,6 +627,18 @@ Cursor Objects It is set for ``SELECT`` statements without any matching rows as well. + .. attribute:: connection + + This read-only attribute provides the SQLite database :class:`Connection` + used by the :class:`Cursor` object. A :class:`Cursor` object created by + calling :meth:`con.cursor() <Connection.cursor>` will have a + :attr:`connection` attribute that refers to *con*:: + + >>> con = sqlite3.connect(":memory:") + >>> cur = con.cursor() + >>> cur.connection == con + True + .. _sqlite3-row-objects: Row Objects @@ -1173,6 +1173,7 @@ Burton Radons Abhilash Raj Shorya Raj Jeff Ramnani +Varpu Rantala Brodie Rao Senko Rasic Antti Rasinen |