This is an example of how to create and open a database.
#include <stdio.h>
#include <string.h>
#include <wiredtiger.h>
const char *home = "WT_TEST";
int main(void)
{
int ret;
fprintf(stderr, "Error connecting to %s: %s\n",
if ((ret = conn->
open_session(conn, NULL, NULL, &session)) != 0)
fprintf(stderr, "Error opening a session on %s: %s\n",
if ((ret = conn->
close(conn, NULL)) != 0)
fprintf(stderr, "Error connecting to %s: %s\n",
return (ret);
}