PyDocs

Nav

Data Persistence

Cursor.connection

sqlite3

attribute of Cursor
Read-only attribute that provides the SQLite database Connection belonging to the cursor. A Cursor object created by calling con.cursor() will have a connection attribute that refers to con:
1 Example
>>> con = sqlite3.connect(":memory:")
>>> cur = con.cursor()
>>> cur.connection == con
True
>>> con.close()
from the Python docs
See Also
No see-alsos for sqlite3/Cursor.connection
0 Notes
No notes for Cursor.connection