Sha256: 793162e20c54eb5570df18537ab002c984770bbe76afff9740b8dc6d95c22f9a

Contents?: true

Size: 1.57 KB

Versions: 35

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

35 entries across 12 versions & 1 rubygems

Version Path
rroonga-2.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/delete.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/delete.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/delete.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/delete.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/source/reference/commands/delete.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/source/commands/delete.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt
rroonga-2.0.4-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt