Example #1
0
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
}
Example #2
0
// Close the cursor.
func (cur Cursor) Close() (err error) {
	err = check(C.db_cursor_close(cur.ptr))
	return
}