The column_rename command renames an existing column in a table.
This is compatible to the column_rename command of the Groonga.
(ドキュメントルート)/d/column_renameGET対応していません。
typecolumn_renamebodytypecolumn_rename.result{
"table" : "<Name of the table>",
"name" : "<Current name of the column>",
"new_name" : "<New name of the column>"
}
All parameters are required.
They are compatible to the parameters of the column_rename command of the Groonga. See the linked document for more details.
このコマンドは、レスポンスの body としてコマンドの実行結果に関する情報を格納した配列を返却します。
[
[
<Groonga's status code>,
<Start time>,
<Elapsed time>
],
<Column is successfully renamed or not>
]
このコマンドはレスポンスの statusCode として常に 200 を返します。これは、Groonga互換コマンドのエラー情報はGroongaのそれと同じ形で処理される必要があるためです。
レスポンスの body の詳細:
0 (Droonga::GroongaHandler::Status::SUCCESS) : 正常に処理された。.-22 (Droonga::GroongaHandler::Status::INVALID_ARGUMENT) : 引数が不正である。true:The column was successfully renamed.false:The column was not renamed.