[Groonga-commit] ranguba/epub-searcher at 033d7a7 [master] Define RemoteDatabase#delete

Back to archive index

KITAITI Makoto null+****@clear*****
Fri Dec 26 13:31:44 JST 2014


KITAITI Makoto	2014-12-26 13:31:44 +0900 (Fri, 26 Dec 2014)

  New Revision: 033d7a73465c488c897b313ccefe8a1f5c0b4f0d
  https://github.com/ranguba/epub-searcher/commit/033d7a73465c488c897b313ccefe8a1f5c0b4f0d

  Message:
    Define RemoteDatabase#delete

  Modified files:
    lib/epub-searcher/remote-database.rb

  Modified: lib/epub-searcher/remote-database.rb (+6 -0)
===================================================================
--- lib/epub-searcher/remote-database.rb    2014-12-26 13:10:12 +0900 (2c024f6)
+++ lib/epub-searcher/remote-database.rb    2014-12-26 13:31:44 +0900 (d67ca00)
@@ -32,6 +32,12 @@ module EPUBSearcher
       @client.select(params).records
     end
 
+    def delete(params = {})
+      params = params.dup
+      params[:command_version] ||= GROONGA_COMMAND_VERSION
+      @client.delete(params)
+    end
+
     private
     def groonga_setup_db_books
       @client.table_create(:name => :Books, :flags => 'TABLE_NO_KEY')
-------------- next part --------------
HTML����������������������������...
Download 



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