Staging: this is not the live site, pydocs.org.
SQLite database connection object.
Changed in 3.13
- 3.13: A ResourceWarning is emitted if close() is not called before a Connection object is deleted.
Members of Connection
a
- autocommit
- This attribute controls PEP 249-compliant transaction behaviour.
b
- backup
- Makes a backup of the database.
c
- close
- Close the database connection.
- commit
- Commit any pending transaction to the database.
- cursor
- Return a cursor for the connection.
g
- getconfig
- Query a boolean connection configuration option.
i
- in_transaction
- This read-only attribute corresponds to the low-level SQLite autocommit mode.
- interrupt
- Abort any pending database operation.
- iterdump
- Returns iterator to the dump of the database in an SQL text format.
r
- rollback
- Roll back to the start of any pending transaction.
- row_factory
- The initial row_factory for Cursor objects created from this connection.
s
- serialize
- Serialize a database into a byte string.
- setconfig
- Set a boolean connection configuration option.
t
- text_factory
- A callable that accepts a bytes parameter and returns a text representation of it.
- total_changes
- Return the total number of database rows that have been modified, inserted, or deleted since the database connection was opened.