// TotalChanges returns the number of row changes caused by INSERT, UPDATE or DELETE statements since the database connection was opened. // (See http://sqlite.org/c3ref/total_changes.html) func (c *Conn) TotalChanges() int { return int(C.sqlite3_total_changes(c.db)) }
func (db *Database) TotalChanges() int { return int(C.sqlite3_total_changes(db.handle)) }
func (h *Handle) TotalChanges() int { return int(C.sqlite3_total_changes(h.cptr)) }
// TotalRowsAffected returns the number of rows that were changed, inserted, or // deleted since the database connection was opened, including changes caused by // trigger and foreign key actions. // [http://www.sqlite.org/c3ref/total_changes.html] func (c *Conn) TotalRowsAffected() int { if c.db == nil { return 0 } return int(C.sqlite3_total_changes(c.db)) }