Allows Sequel to reuse an ActiveRecord connection

30-Apr-2020 216
This is an extension for Sequel that allows it to reuse an existing ActiveRecord connection for database interaction. It supports postgresql, mysql2 and sqlite3 adapters.This can be useful if you're using a library that uses Sequel for database interaction (e.g. Rodauth), but you want to avoid creating a separate database connection. Or if you're transitioning from ActiveRecord to Sequel, and want the database connection to be shared.Note that this is a best-effort implementation, so some discrepancies are still possible. That being said, this implementation passes Rodauth's test suite (for all adapters), which has fairly advanced Sequel usage.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle