Shows how to configure some properties of the database and tables.
#include <stdio.h>
#include <string.h>
#include <wiredtiger.h>
const char *home = "WT_TEST";
int main(void)
{
int ret;
const char *key, *value;
"create,cache_size=500M", &conn)) != 0)
fprintf(stderr, "Error connecting to %s: %s\n",
ret = session->
create(session,
"table:access", "key_format=S,value_format=S");
ret = session->
open_cursor(session,
"config:", NULL, NULL, &cursor);
while ((ret = cursor->
next(cursor)) == 0) {
printf("configuration value: %s = %s\n", key, value);
}
ret = conn->
close(conn, NULL);
return (ret);
}