예제 #1
0
파일: sqlite.go 프로젝트: npowern/gosqlite
// 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))
}
예제 #2
0
파일: database.go 프로젝트: rwj/gosqlite3
func (db *Database) TotalChanges() int {
	return int(C.sqlite3_total_changes(db.handle))
}
예제 #3
0
파일: sqlite3.go 프로젝트: cskau/gosqlite3
func (h *Handle) TotalChanges() int {
	return int(C.sqlite3_total_changes(h.cptr))
}
예제 #4
0
파일: sqlite3.go 프로젝트: gidden/cloudlus
// 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))
}