hamsterdb Embedded Database 1.1.15
|
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Copyright (C) 2005-2008 Christoph Rupp (chris@crupp.de).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See files COPYING.* for License information.
This sample demonstrates the use of duplicate items; every line is split into words, and each word is inserted with its line number. Then a cursor is used to print all words in a sorted order, with the lines in which the word occurred.
Definition at line 23 of file db5.c.
References ham_record_t::data, ham_key_t::data, HAM_AUTO_CLEANUP, ham_close(), ham_create_ex(), ham_cursor_create(), ham_cursor_move(), HAM_CURSOR_NEXT, ham_delete(), HAM_DUPLICATE, HAM_ENABLE_DUPLICATES, ham_insert(), HAM_KEY_NOT_FOUND, ham_new(), HAM_SUCCESS, ham_record_t::size, and ham_key_t::size.