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