[Groonga-commit] droonga/droonga.org at 40267c8 [gh-pages] Add command reference of "column_remove"

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed May 28 11:04:45 JST 2014


YUKI Hiroshi	2014-05-28 11:04:45 +0900 (Wed, 28 May 2014)

  New Revision: 40267c8866c872cf7e44aaa17d93b178fdb3c641
  https://github.com/droonga/droonga.org/commit/40267c8866c872cf7e44aaa17d93b178fdb3c641

  Message:
    Add command reference of "column_remove"

  Added files:
    reference/1.0.3/commands/column-remove/index.md

  Added: reference/1.0.3/commands/column-remove/index.md (+73 -0) 100644
===================================================================
--- /dev/null
+++ reference/1.0.3/commands/column-remove/index.md    2014-05-28 11:04:45 +0900 (29af88d)
@@ -0,0 +1,73 @@
+---
+title: column_remove
+layout: en
+---
+
+* TOC
+{:toc}
+
+## Abstract {#abstract}
+
+The `column_remove` command removes an existing column in a table.
+
+This is compatible to [the `column_remove` command of the Groonga](http://groonga.org/docs/reference/commands/column_remove.html).
+
+Style
+: Request-Response. One response message is always returned per one request.
+
+`type` of the request
+: `column_remove`
+
+`body` of the request
+: A hash of parameters.
+
+`type` of the response
+: `column_remove.result`
+
+## Parameter syntax {#syntax}
+
+    {
+      "table" : "<Name of the table>",
+      "name"  : "<Name of the column>"
+    }
+
+## Parameter details {#parameters}
+
+All parameters are required.
+
+They are compatible to [the parameters of the `column_remove` command of the Groonga](http://groonga.org/docs/reference/commands/column_remove.html#parameters). See the linked document for more details.
+
+## Responses {#response}
+
+This returns an array meaning the result of the operation, as the `body`.
+
+    [
+      [
+        <Groonga's status code>,
+        <Start time>,
+        <Elapsed time>
+      ],
+      <Column is successfully removed or not>
+    ]
+
+This command always returns a response with `200` as its `statusCode`, because this is a Groonga compatible command and errors of this command must be handled in the way same to Groonga's one.
+
+Response body's details:
+
+Status code
+: An integer which means the operation's result. Possible values are:
+  
+   * `0` (`Droonga::GroongaHandler::Status::SUCCESS`) : Successfully processed.
+   * `-22` (`Droonga::GroongaHandler::Status::INVALID_ARGUMENT`) : There is any invalid argument.
+
+Start time
+: An UNIX time which the operation was started on.
+
+Elapsed time
+: A decimal of seconds meaning the elapsed time for the operation.
+
+Column is successfully removed or not
+: A boolean value meaning the column was successfully removed or not. Possible values are:
+  
+   * `true`:The column was successfully removed.
+   * `false`:The column was not removed.
-------------- next part --------------
HTML����������������������������...
Download 



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