hamsterdb Embedded Database 1.1.15
|
Go to the source code of this file.
Functions | |
void | error (const char *foo, ham_status_t st) |
void | usage (void) |
void | copy_db (ham_db_t *source, ham_db_t *dest) |
int | main (int argc, char **argv) |
Definition at line 36 of file db2.c.
References error(), ham_cursor_close(), ham_cursor_create(), HAM_CURSOR_FIRST, ham_cursor_move(), HAM_CURSOR_NEXT, HAM_DUPLICATE, ham_insert(), and HAM_KEY_NOT_FOUND.
Referenced by main().
void error | ( | const char * | foo, |
ham_status_t | st | ||
) |
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 example copies one database into another. this works also for copying in-memory-databases to on-disk-databases and vice versa.
Definition at line 22 of file db2.c.
References ham_strerror().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 82 of file db2.c.
References copy_db(), error(), ham_close(), ham_create_ex(), ham_delete(), HAM_ENABLE_DUPLICATES, ham_new(), ham_open(), and usage().