rom-sql Join the chat at https://rom-rb.zulipchat.com

Gem Version CI Status Code Climate Test Coverage Inline docs

SQL support for rom-rb.

Resources:

Installation

Add this line to your application's Gemfile:

gem 'rom-sql'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rom-sql

Docker

Development

In order to have reproducible environment for development, Docker can be used. Provided it's installed, in order to start developing, one can simply execute:

docker-compose run --rm gem "bash"

If this is the first time this command is executed, it will take some time to set up the dependencies and build the rom-sql container. This should happen only on first execution and in case dependency images are removed.

After dependencies are set container will be started in a bash shell.

Testing

In order to test the changes, execute:

docker-compose build gem
bin/run-specs

Stopping the dependencies

In order to stop the dependencies, execute:

docker-compose down --remove-orphans --volumes

License

See LICENSE file.