hamsterdb Embedded Database 1.1.13
Functions

db2.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ham/hamsterdb.h>

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)

Function Documentation

void copy_db ( ham_db_t source,
ham_db_t dest 
)
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 
)
void usage ( void  )

Definition at line 29 of file db2.c.

Referenced by main().