[Groonga-commit] pgroonga/pgroonga.github.io at 29f1c2f [master] Translate

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 8 23:11:23 JST 2015


Kouhei Sutou	2015-10-08 23:11:23 +0900 (Thu, 08 Oct 2015)

  New Revision: 29f1c2f5639c143fe4d6d65b970db352180c0c30
  https://github.com/pgroonga/pgroonga.github.io/commit/29f1c2f5639c143fe4d6d65b970db352180c0c30

  Message:
    Translate

  Modified files:
    reference/functions/pgroonga-command.md
    tutorial/index.md

  Modified: reference/functions/pgroonga-command.md (+13 -1)
===================================================================
--- reference/functions/pgroonga-command.md    2015-10-08 22:56:21 +0900 (29dbc43)
+++ reference/functions/pgroonga-command.md    2015-10-08 23:11:23 +0900 (cc8f4c1)
@@ -5,4 +5,16 @@ layout: en
 
 # `pgroonga.command` function
 
-TODO
+`pgroonga.command` function executes a [Groonga command](http://groonga.org/docs/reference/command.html) and returns the result as `text` type value.
+
+Here is `pgroonga.command` signature:
+
+```text
+pgroonga.command(command)
+```
+
+`command` is a `text` type value. `pgroonga.command` executes `command` as a Groonga command.
+
+Groonga command returns result as JSON. `pgroonga.command` returns the JSON as `text` type value. You can use [JSON functions and operations provided by PostgreSQL](http://www.postgresql.org/docs/current/static/functions-json.html) by casting the result to `json` or `jsonb` type.
+
+See also [examples in tutorial](../../tutorial/#groonga).

  Modified: tutorial/index.md (+3 -1)
===================================================================
--- tutorial/index.md    2015-10-08 22:56:21 +0900 (296c044)
+++ tutorial/index.md    2015-10-08 23:11:23 +0900 (7c41aec)
@@ -427,6 +427,8 @@ SELECT * FROM products WHERE tags %% 'PostgreSQL';
 -- (2 行)
 ```
 
+{: #groonga}
+
 ## How to use Groonga throw PGroonga
 
 This is an advanced topic.
@@ -473,7 +475,7 @@ SELECT * FROM json_each(pgroonga.command('status')::json->1);
 -- (9 rows)
 ```
 
-See [pgroonga.command function](../reference/functions/pgroonga-command.html) for more details.
+See [`pgroonga.command` function](../reference/functions/pgroonga-command.html) for more details.
 
 ### `pgroonga.table_name` function
 
-------------- next part --------------
HTML����������������������������...
Download 



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