示例#1
0
// Commit ...
func (db *Database) Commit() (err error) {
	res := C.unqlite_commit(db.handle)
	if res != C.UNQLITE_OK {
		err = UnQLiteError(res)
	}
	return
}
示例#2
0
func (u *Unqlite) Commit() error {
	e := C.unqlite_commit(u.db)
	return code2Error(e)
}