Updating and deleting data is similar to but not quite the same as inserting data. In this recipe, we will use Ruby and HandlerSocket to update and delete data.
Complete the Inserting data using HandlerSocket and Ruby recipe prior to starting this recipe.
irbinterpreter to open a HandlerSocket connection to our
testdatabase and the
require 'rubygems' require 'handlersocket' hsu = HandlerSocket.new(:host => '127.0.0.1',:port => '9999') hsu.open_index(2,'test','hs_test','PRIMARY','givenname')