From f15273ca5382382339568a477df61a34ae04a0ec Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 21 Aug 2014 09:10:14 +1000 Subject: [PATCH] ckdb - add some examples in the socket doc --- src/ckdb.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/ckdb.c b/src/ckdb.c index 23ae4664..3c183a21 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -7605,6 +7605,26 @@ static char *cmd_stats(__maybe_unused PGconn *conn, char *cmd, char *id, * the full json in {...} will be stored as text in TRANSFER under the name * 'json' - which will (usually) mean the command will fail if it requires * actual field data + * + * Examples of the commands not from ckpool with an example reply + * STAMP is the unix timestamp in seconds + * With no id: + * ping + * .STAMP.ok.pong + * + * shutdown + * .STAMP.ok.exiting + * + * With an id + * In each case the id in these examples, also returned, is 'ID' which can + * of course be most any string, as stated above + * For commands with multiple fld=value the space between them must be typed + * as a TAB + * ping.ID + * ID.STAMP.ok.pong + * + * newid.ID.idname=fooid idvalue=1234 + * ID.STAMP.ok.added fooid 1234 */ static struct CMDS { enum cmd_values cmd_val;