Source

ruby-handlersocket /

Filename Size Date modified Message
877 B
115 B
11.8 KB
631 B
= ruby-handlersocket

== Description

Ruby bindings for HandlerSocket plugin
see http://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL

== Build

ruby extconf.rb
make

== API Specifications

see http://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/blob/master/docs-en/perl-client.en.txt

== Example

  require 'handlersocket'
  
  hs = HandlerSocket.new('127.0.0.1', 9999)
  # Args (default value)
  # host(localhost), port(9998), timeout(600), listen_backlog(256)
  
  hs.open_index(3, 'employees', 'departments', 'PRIMARY', 'dept_no,dept_name');
  
  res = hs.execute_single(3, '>=', ['d004'], 100, 0);
  # => [0, "d005", "Development", "d006", "Quality Management", "d007", "Sales", "d008", "Research", "d009", "Customer Service"]
  
  hs.execute_insert(3, ['d999', 'XYZ']);
  hs.execute_delete(3, '=', ['d007'], 1, 0);
  
  hs.close
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.