SQLITE3_TOTAL_CHANGES(3) | Library Functions Manual | SQLITE3_TOTAL_CHANGES(3) |
sqlite3_total_changes
—
sqlite3_total_changes
(sqlite3*);
Changes made as part of foreign key actions are included in the count, but those made as part of REPLACE constraint resolution are not. Changes to a view that are intercepted by INSTEAD OF triggers are not counted.
This the sqlite3_total_changes(D) interface only reports the number of rows that changed due to SQL statement run against database connection D. Any changes by other database connections are ignored. To detect changes against a database file from other database connections use the PRAGMA data_version command or the SQLITE_FCNTL_DATA_VERSION file control.
If a separate thread makes changes on the same database connection while sqlite3_total_changes() is running then the value returned is unpredictable and not meaningful.
December 19, 2018 | NetBSD 9.2 |