func (cursor Cursor) Close() error { if cursor.ptr == nil { return ok } err := Err(C.db_cursor_close(cursor.ptr)) if err != nil { return err } cursor.ptr = nil return ok }
// Close the cursor. func (cur Cursor) Close() (err error) { err = check(C.db_cursor_close(cur.ptr)) return }