@@ -395,6 +395,7 @@ func (c *Conn) OneValue(query string, value interface{}, args ...interface{}) er
}
// Count the number of rows modified
// If a separate thread makes changes on the same database connection while Changes() is running then the value returned is unpredictable and not meaningful.
// (See http://sqlite.org/c3ref/changes.html)
func(c*Conn)Changes()int{
returnint(C.sqlite3_changes(c.db))
...
...
@@ -407,6 +408,7 @@ func (c *Conn) TotalChanges() int {
}
// Return the rowid of the most recent successful INSERT into the database.
// If a separate thread performs a new INSERT on the same database connection while the LastInsertRowid() function is running and thus changes the last insert rowid, then the value returned by LastInsertRowid() is unpredictable and might not equal either the old or the new last insert rowid.
// (See http://sqlite.org/c3ref/last_insert_rowid.html)