[Groonga-commit] droonga/droonga.org at d4f0594 [gh-pages] Add output examples

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 10:26:00 JST 2015


YUKI Hiroshi	2015-05-07 10:26:00 +0900 (Thu, 07 May 2015)

  New Revision: d4f0594fd87949f745fc348a21ca199737b00547
  https://github.com/droonga/droonga.org/commit/d4f0594fd87949f745fc348a21ca199737b00547

  Message:
    Add output examples

  Modified files:
    reference/1.1.0/command-line-tools/droonga-add/index.md
    reference/1.1.1/command-line-tools/droonga-add/index.md

  Modified: reference/1.1.0/command-line-tools/droonga-add/index.md (+32 -3)
===================================================================
--- reference/1.1.0/command-line-tools/droonga-add/index.md    2015-05-01 19:07:02 +0900 (2a933d9)
+++ reference/1.1.0/command-line-tools/droonga-add/index.md    2015-05-07 10:26:00 +0900 (0d9a2db)
@@ -16,6 +16,16 @@ For example, if there is a Droonga node `192.168.100.50` and you are logged in t
 (on 192.168.100.10)
 $ droonga-add --host 192.168.100.50 --receiver-host 192.168.100.10 \
     --table User --key id1 --name Adam --age 20
+Adding new record...
+{
+  "table": "Store",
+  "key": "id1",
+  "values": {
+    "name": "Adam",
+    "age": 20
+  }
+}
+Done.
 ~~~
 
 This command is just a shorthand of [`droonga-request`](../droonga-request/) with a message with the type [`add`](../../commands/add/).
@@ -23,8 +33,27 @@ The result produced by the following command line completely equals to the one o
 
 ~~~
 (on 192.168.100.10)
-$ echo '{"type":"key","key":"id1","values":{"name":"Adam","age":20}}' |
-    droonga-request --host 192.168.100.50 --receiver-host 192.168.100.10
+$ echo '{"type":"add","body":{"key":"id1","values":{"name":"Adam","age":20}}}' |
+    droonga-request --report-reqest --host 192.168.100.50 --receiver-host 192.168.100.10
+Request: {
+  "type": "add",
+  "body": {
+    "table": "Store",
+    "key": "id1",
+    "values": {
+      "name": "Adam",
+      "age": 20
+    }
+  },
+  "dataset": "Default"
+}
+Elapsed time: 0.023309135
+{
+  "inReplyTo": "1430961788.4171028",
+  "statusCode": 200,
+  "type": "add.result",
+  "body": true
+}
 ~~~
 
 See also [the reference of the `add` command](../../commands/add/).
@@ -58,7 +87,7 @@ See also [the reference of the `add` command](../../commands/add/).
   `Default` by default.
 
 `--receiver-host=NAME`
-: Host name of the computer you are running the command.
+: Host name of the computer you are running this command.
   A guessed host name of the computer, by default.
 
 `--target-role=ROLE`

  Modified: reference/1.1.1/command-line-tools/droonga-add/index.md (+31 -2)
===================================================================
--- reference/1.1.1/command-line-tools/droonga-add/index.md    2015-05-01 19:07:02 +0900 (17b5567)
+++ reference/1.1.1/command-line-tools/droonga-add/index.md    2015-05-07 10:26:00 +0900 (0d9a2db)
@@ -16,6 +16,16 @@ For example, if there is a Droonga node `192.168.100.50` and you are logged in t
 (on 192.168.100.10)
 $ droonga-add --host 192.168.100.50 --receiver-host 192.168.100.10 \
     --table User --key id1 --name Adam --age 20
+Adding new record...
+{
+  "table": "Store",
+  "key": "id1",
+  "values": {
+    "name": "Adam",
+    "age": 20
+  }
+}
+Done.
 ~~~
 
 This command is just a shorthand of [`droonga-request`](../droonga-request/) with a message with the type [`add`](../../commands/add/).
@@ -23,8 +33,27 @@ The result produced by the following command line completely equals to the one o
 
 ~~~
 (on 192.168.100.10)
-$ echo '{"type":"key","key":"id1","values":{"name":"Adam","age":20}}' |
-    droonga-request --host 192.168.100.50 --receiver-host 192.168.100.10
+$ echo '{"type":"add","body":{"key":"id1","values":{"name":"Adam","age":20}}}' |
+    droonga-request --report-reqest --host 192.168.100.50 --receiver-host 192.168.100.10
+Request: {
+  "type": "add",
+  "body": {
+    "table": "Store",
+    "key": "id1",
+    "values": {
+      "name": "Adam",
+      "age": 20
+    }
+  },
+  "dataset": "Default"
+}
+Elapsed time: 0.023309135
+{
+  "inReplyTo": "1430961788.4171028",
+  "statusCode": 200,
+  "type": "add.result",
+  "body": true
+}
 ~~~
 
 See also [the reference of the `add` command](../../commands/add/).
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index