|
hamsterdb Embedded Database
2.1.1
|
Go to the source code of this file.
Defines | |
| #define | DATABASE_NAME 1 |
Functions | |
| int | main (int argc, char **argv) |
| #define DATABASE_NAME 1 |
Copyright (C) 2005-2013 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 22 of file db5.c.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 25 of file db5.c.
References ham_record_t::data, ham_key_t::data, DATABASE_NAME, HAM_AUTO_CLEANUP, ham_cursor_create(), ham_cursor_move(), HAM_CURSOR_NEXT, ham_db_insert(), HAM_DUPLICATE, HAM_ENABLE_DUPLICATES, HAM_ENABLE_EXTENDED_KEYS, ham_env_close(), ham_env_create(), ham_env_create_db(), HAM_IN_MEMORY, HAM_KEY_NOT_FOUND, HAM_SUCCESS, ham_record_t::size, and ham_key_t::size.
1.7.6.1