Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use with ActiveRecord's connection? #56

Closed
joevandyk opened this issue Feb 10, 2016 · 3 comments
Closed

Ability to use with ActiveRecord's connection? #56

joevandyk opened this issue Feb 10, 2016 · 3 comments

Comments

@joevandyk
Copy link

joevandyk commented Feb 10, 2016

I'd like to look at using ROM in our codebase, but we would need to use the same database connection that ActiveRecord uses. Is that (or will that) be possible?

@hmadison
Copy link
Member

You can use the same credentials that ActiveRecord would use, but not the same driver level connection object.

@solnic
Copy link
Member

solnic commented Feb 10, 2016

See if you can share connection between Sequel and AR - if it's possible, then it's also possible in ROM

@endash
Copy link
Collaborator

endash commented Feb 13, 2016

To further clarify, you can pass a Sequel::Database (resulting from Sequel.connect) to ROM rather than a set of connection details, so if you can do it with Sequel you can do it with ROM easily. Conversely, if you can't do it with Sequel then there's no change we can make to ROM to make it happen.

@solnic solnic closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants