Sha256: 98e2c940e7ab7b1d31dba13633eb08a74da75f812e86c54bf4689d4703a3ea37

Contents?: true

Size: 1.57 KB

Versions: 14

Compression:

Stored size: 1.57 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

delete
======

名前
----

delete - 一件のレコードの削除

書式
----
::

 delete table [key [id [filter]]]

説明
----

groonga組込コマンドの一つであるdeleteについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。

deleteは、使用しているデータベースのテーブルに1件のレコードを削除します。

引数
----

``table``

  レコードを削除しようとするテーブルの名前を指定します。

``key``

  削除するレコードの主キー値を指定します。主キーなしのテーブルの場合はこのパラメータを指定しても無視されます(idパラメータを代わりに指定します)。

``id``

  レコードIDによってレコードを指定します。idパラメータを指定する場合は、keyパラメータを指定してはいけません。

``filter``

  script形式のgrn_expr文字列によってレコードを指定します。filterパラメータを指定する場合は、id及びkeyパラメータを指定してはいけません。

返値
---

json形式
^^^^^^^^

::

 [成功かどうかのフラグ]

``成功かどうかのフラグ``

  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。

例
--

テーブルEntryからレコードを削除します。::

 delete Entry abandon

 [true]

関連項目
--------

:doc:`load`

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.5-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.5-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.4-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.4-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-3.0.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-3.0.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt