Skip to content
an activerecord plugin for HandlerSocket
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
README
init.rb

README

## What is this ##
active_record_handlersocket is an activerecord plugin for HandlerSocket

## What kinds of queries are supported? ###
Only find by primary key is supported in current version

  * User.find(id)
  * Project.user #belongs_to

Next step is to supporting foreign key query

## Installation ##
#### Step 0: Install HandlerSocket ####
https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL

#### Step 1: Install ruby-handlersocket ####
https://github.com/winebarrel/ruby-handlersocket

#### Step 2: Install this plugin ####

#### Step 3: Configure in initializers ####
Place this in `config/initializers/active_record_handlersocket.rb`

    ActiveRecord::Base.use_handlersocket '127.0.0.1', 9998
Something went wrong with that request. Please try again.