The project is in a healthy, maintained state
MySQL adapter for fx
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 3.0

Runtime

~> 0.7
 Project Readme

Fx::Adapters::Mysql

MySQL adapter for fx.

Installation

Add this line to your application's Gemfile:

gem 'fx-adapters-mysql'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install fx-adapters-mysql

Usage

#  config/initializers/fx.rb

Fx.configure do |config|
 config.database = Fx::Adapters::MySQL.new
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/rake to call the default task that creates test db, run specs and standard:fix linter task. For custom database connection configuration use DATABASE_URL environment variable export DATABASE_URL="$(ruby -e 'require "cgi"; puts "mysql2://db_username:#{CGI.escape("password,with special characters.")}@hostname/dummy_test"')" and run commands (bin/rspec, bin/setup, etc). You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

VS Code Remote Containers

If you have Visual Studio Code and Docker installed, you can use the VS Code remote containers plugin. The plugin will read the .devcontainer configuration in the repository and build the Docker container locally

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/f-mer/fx-adapters-mysql.