diff options
Diffstat (limited to 'src/third_party/wiredtiger/examples/c/ex_cursor.c')
-rw-r--r-- | src/third_party/wiredtiger/examples/c/ex_cursor.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_cursor.c b/src/third_party/wiredtiger/examples/c/ex_cursor.c index 23377c13a23..5ca30671af6 100644 --- a/src/third_party/wiredtiger/examples/c/ex_cursor.c +++ b/src/third_party/wiredtiger/examples/c/ex_cursor.c @@ -31,6 +31,7 @@ #include <test_util.h> int cursor_reset(WT_CURSOR *cursor); +int cursor_bound(WT_CURSOR *cursor); int cursor_forward_scan(WT_CURSOR *cursor); int cursor_reverse_scan(WT_CURSOR *cursor); int cursor_search(WT_CURSOR *cursor); @@ -84,6 +85,16 @@ cursor_reset(WT_CURSOR *cursor) } /*! [cursor reset] */ +/*! [cursor bound] */ +int +cursor_bound(WT_CURSOR *cursor) +{ + cursor->set_key(cursor, "A"); + error_check(cursor->bound(cursor, "action=set,bound=lower")); + return (0); +} +/*! [cursor bound] */ + /*! [cursor search] */ int cursor_search(WT_CURSOR *cursor) |