A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/mdb__copy_8c_source.html below:

NCBI C++ ToolKit: src/util/lmdb/mdb_copy.c Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

16 #define MDB_STDOUT GetStdHandle(STD_OUTPUT_HANDLE) 30 int main

(

int

argc,

char

* argv[])

34  const char

*progname = argv[0], *act;

38  for

(; argc > 1 && argv[1][0] ==

'-'

; argc--, argv++) {

39  if

(argv[1][1] ==

'n'

&& argv[1][2] ==

'\0'

)

41  else if

(argv[1][1] ==

'c'

&& argv[1][2] ==

'\0'

)

43  else if

(argv[1][1] ==

'V'

&& argv[1][2] ==

'\0'

) {

50  if

(argc<2 || argc>3) {

51

fprintf(stderr,

"usage: %s [-V] [-c] [-n] srcpath [dstpath]\n"

, progname);

64

act =

"opening environment"

;

77

fprintf(stderr,

"%s: %s failed, error %d (%s)\n"

,

#define MDB_VERSION_STRING

The full library version as a C string.

#define MDB_SUCCESS

Successful result.

int mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode)

Open an environment handle.

int mdb_env_copy2(MDB_env *env, const char *path, unsigned int flags)

Copy an LMDB environment to the specified path, with options.

void mdb_env_close(MDB_env *env)

Close the environment and release the memory map.

int mdb_env_copyfd2(MDB_env *env, mdb_filehandle_t fd, unsigned int flags)

Copy an LMDB environment to the specified file descriptor, with options.

char * mdb_strerror(int err)

Return a string describing a given error code.

int mdb_env_create(MDB_env **env)

Create an LMDB environment handle.

#define MDB_CP_COMPACT

Compacting copy: Omit free space from copy, and renumber all pages sequentially.

#define MDB_NOSUBDIR

no environment directory

#define MDB_RDONLY

read only

static void sighandle(int sig)

int main(int argc, char *argv[])

The database environment.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4