  const char *db_home_dir = "/tmp/myEnvironment";

    envp = NULL;

    /* Create the environment */
    ret = db_env_create(&amp;envp, 0);
    if (ret != 0) {
        fprintf(stderr, "Error creating environment handle: %s\n",
            db_strerror(ret));
        return (EXIT_FAILURE);
    }

    /* 
     * Indicate that logging is to be performed only in memory. 
     * Doing this means that we give up our transactional durability
     * guarantee.
     */
    envp-&gt;log_set_config(envp, DB_LOG_IN_MEM