No commit activity in last 3 years
No release in over 3 years
The ActiveRecod MemSQL Adapter is an ActiveRecord connection adapter based on the standard mysql2 adapter. This adapter is a customized version of the mysql2 adapter to provide support for MemSQL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 5.0
~> 10.0

Runtime

>= 6.0.0
>= 0.4.4
 Project Readme

ActiveRecord MemSQL Adapter

The ActiveRecod MemSQL Adapter is an ActiveRecord connection adapter based on the standard mysql2 adapter. This adapter is a customized version of the mysql2 adapter to provide support for MemSQL.

This gem has been tested with Rails 5, Ruby 2.3 and 2.4.

Installation

Add this line to your application's Gemfile:

gem 'activerecord-memsql'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activerecord-memsql

Usage

In you database.yml, you just have to replace mysql2 with memsql. Here's an exemple:

default: &default
  adapter: memsql
  encoding: utf8
  pool: 5

development:
  <<: *default
  username: root
  host: 127.0.0.1
  database: 
  password:
  socket: /memsql.sock # Don't forget to edit this line!

You can use this command to retrieve the socket path of your MemSQL DB. Replace 127.1 with the ip of your server:

$ mysql -u root -h 127.1 -P 3306 -e "show variables like 'socket'"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tgeselle/activerecord-memsql. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.