Esempio n. 1
0
// 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))
}
Esempio n. 2
0
func (db *Database) TotalChanges() int {
	return int(C.sqlite3_total_changes(db.handle))
}
Esempio n. 3
0
func (h *Handle) TotalChanges() int {
	return int(C.sqlite3_total_changes(h.cptr))
}
Esempio n. 4
0
// 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))
}