sqlite3.Connection.total_changes()
sqlite3.Connection.total_changes() is a Python method in the SQLite Module category. Returns the total number of database rows that have been modified. The syntax is connection.total_changes(). Returns: Integer. A typical example: conn.total_changes() # 42. A close sibling is sqlite3.connect(), which connects to an SQLite database file (or creates it). Returns a Connection object. A close sibling is sqlite3.Connection.execute(), which executes a single SQL statement and returns a Cursor. A close sibling is sqlite3.Connection.cursor(), which creates a Cursor object for database operations. A close sibling is sqlite3.Cursor.execute(), which executes a SQL statement with optional parameter substitution. More about this category: SQLite database — connect, execute, commit, fetchone, fetchall, Row. Related SQLite Module entries: sqlite3.connect(), sqlite3.Connection.execute(), sqlite3.Connection.cursor(), sqlite3.Cursor.execute(), sqlite3.Cursor.executemany(), sqlite3.Cursor.fetchone(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try sqlite3.Connection.total_changes() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.