File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -627,6 +627,18 @@ Cursor Objects
627627
628628 It is set for ``SELECT `` statements without any matching rows as well.
629629
630+ .. attribute :: connection
631+
632+ This read-only attribute provides the SQLite database :class: `Connection `
633+ used by the :class: `Cursor ` object. A :class: `Cursor ` object created by
634+ calling :meth: `con.cursor() <Connection.cursor> ` will have a
635+ :attr: `connection ` attribute that refers to *con *::
636+
637+ >>> con = sqlite3.connect(":memory:")
638+ >>> cur = con.cursor()
639+ >>> cur.connection == con
640+ True
641+
630642.. _sqlite3-row-objects :
631643
632644Row Objects
Original file line number Diff line number Diff line change @@ -1173,6 +1173,7 @@ Burton Radons
11731173Abhilash Raj
11741174Shorya Raj
11751175Jeff Ramnani
1176+ Varpu Rantala
11761177Brodie Rao
11771178Senko Rasic
11781179Antti Rasinen
You can’t perform that action at this time.
0 commit comments