hamsterdb Embedded Database 1.1.14
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ham/hamsterdb.h>
#include <ham/hamsterdb_srv.h>
Go to the source code of this file.
Defines | |
#define | EXT "" |
Functions | |
int | main (void) |
#define EXT "" |
Copyright (C) 2005-2010 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.
A simple example which creates a server with one Environment and several Databases
Definition at line 25 of file server1.c.
Referenced by main().
int main | ( | void | ) |
Definition at line 29 of file server1.c.
References EXT, HAM_AUTO_CLEANUP, ham_close(), ham_delete(), HAM_ENABLE_DUPLICATES, HAM_ENABLE_TRANSACTIONS, ham_env_close(), ham_env_create_db(), ham_env_create_ex(), ham_env_delete(), ham_env_new(), ham_new(), HAM_RECORD_NUMBER, ham_srv_add_env(), ham_srv_close(), ham_srv_init(), and ham_srv_config_t::port.