|
![]() ![]()
|
A database cursor refers to a single key/data pair in the database. It supports traversal of the database and is the only way to access individual duplicate data items. Cursors are used for operating on collections of records, for iterating over a database, and for saving handles to individual records, so that they can be modified after they have been read.
(커서는 단일 키/데이타쌍을 참조한다.이것은 디비 순회를 지원하고 복제된 데이타 아이템을 개별적으로 접근할 수 있는 유일한 방법이다.커서는 레코드의 집합에 대한 오퍼레이션(디비 iterationg,레코드를 읽은후 변경될수 있도록 개별레코드에 핸들저장)을 위해 사용된다.)
The DB->cursor method opens a cursor into a database. Upon return the cursor is uninitialized, cursor positioning occurs as part of the first cursor operation.
(DB->cursor 는 커서를 오픈한다. 리턴된 커서는 초기화되지 않은상태이고 커서포지셔닝은 첫 커서오퍼레이션때 발생한다.)
Once a database cursor has been opened, records may be retrieved (DBcursor->c_get), stored (DBcursor->c_put), and deleted (DBcursor->c_del).
(일단 커서가 열리면,레코드는 리트리빙,저장,삭제가 가능하다.)
Additional operations supported by the cursor handle include duplication (DBcursor->c_dup), equality join (DB->join), and a count of duplicate data items (DBcursor->c_count). Cursors are eventually closed using DBcursor->c_close.
| Database Cursors and Related Methods | Description |
|---|---|
| DB->cursor | Create a cursor handle |
| DBcursor->c_close | Close a cursor |
| DBcursor->c_count | Return count of duplicates |
| DBcursor->c_del | Delete by cursor |
| DBcursor->c_dup | Duplicate a cursor |
| DBcursor->c_get | Retrieve by cursor |
| DBcursor->c_pget | Retrieve by cursor |
| DBcursor->c_put | Store by cursor |
![]() ![]()
|
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.