The table_create
command creates a new table.
This is compatible to the table_create
command of the Groonga.
(Document Root)/d/table_create
GET
Not supported.
type
of the requesttable_create
body
of the requesttype
of the responsetable_create.result
{
"name" : "<Name of the table>",
"flags" : "<Flags for the table>",
"key_type" : "<Type of the primary key>",
"value_type" : "<Type of the value>",
"default_tokenizer" : "<Default tokenizer>",
"normalizer" : "<Normalizer>"
}
All parameters except name
are optional.
They are compatible to the parameters of the table_create
command of the Groonga. See the linked document for more details.
This returns an array meaning the result of the operation, as the body
.
[
[
<Groonga's status code>,
<Start time>,
<Elapsed time>
],
<Table is successfully created 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:
0
(Droonga::GroongaHandler::Status::SUCCESS
) : Successfully processed.-22
(Droonga::GroongaHandler::Status::INVALID_ARGUMENT
) : There is any invalid argument.true
:The table was successfully created.false
:The table was not created.