From b65420c0bd3c6de8ef4e8d847e1663105ca925fb Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Thu, 16 Dec 2010 22:54:09 +1100 Subject: [PATCH] More work on documentation and examples, removed some things from the API, incorporated some of Keith's feedback. --HG-- branch : mjc rename : examples/c/ex_schema.c => examples/c/ex_call_center.c extra : transplant_source : %AE%E9%C4%0B%3A%C5%0EH%E1%A8%A2L%E6%D2%D6%40G%9Dzq --- docs/src/config-strings.dox | 6 +- docs/src/cursor-types.dox | 2 +- docs/src/examples.dox | 4 + docs/src/overview.dox | 7 +- docs/src/schema.dox | 4 +- examples/c/Makefile | 4 +- examples/c/ex_access.c | 31 ++- examples/c/ex_call_center.c | 179 ++++++++++++++++++ examples/c/ex_config.c | 4 +- examples/c/ex_hello.c | 4 +- examples/c/ex_schema.c | 9 +- examples/c/ex_sequence.c | 7 +- examples/c/ex_stat.c | 4 +- include/wiredtiger.h | 88 +++++---- lang/python/src/wiredtiger/__init__.py | 17 +- .../src/wiredtiger/service/WiredTiger-remote | 7 + .../src/wiredtiger/service/WiredTiger.py | 166 ++++++++++++++++ src/api/api.c | 32 ++-- 18 files changed, 480 insertions(+), 95 deletions(-) create mode 100644 examples/c/ex_call_center.c diff --git a/docs/src/config-strings.dox b/docs/src/config-strings.dox index 4609699ac75..2f512986291 100644 --- a/docs/src/config-strings.dox +++ b/docs/src/config-strings.dox @@ -12,14 +12,16 @@ That is, they are simple comma-separated lists of "=" p Empty configuration strings may be represented in C or C++ by passing NULL. -Superfluous commas in the configuration string are ignored (including at the beginning and end of the string), so it is always safe to combine two configuration strings by concatenating them with a comma in between. +Superfluous commas and whitespace in the configuration string are ignored (including at the beginning and end of the string), so it is always safe to combine two configuration strings by concatenating them with a comma in between. Keys are processed in order from left to right, with later settings overriding earlier ones unless multiple settings for a key are permitted. \section config_examples Examples +TODO: more whitespace, complete code fragments. +