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

rails adapter #5

Closed
pschrammel opened this issue Apr 15, 2023 · 1 comment
Closed

rails adapter #5

pschrammel opened this issue Apr 15, 2023 · 1 comment

Comments

@pschrammel
Copy link

Hi, you may have noticed I'm assembling a whole async rails stack for a high performance open source fun project. Do you have a working rails adapter for this? Do you see any problems to write one? I'd give it a try.

THX

@ioquatix
Copy link
Member

In general, I think it would be interesting to explore building a ActiveRecord adapter to the db gem backend. However, last time I looked, I think ActiveRecord did not provide a clean separation between the implementation of adapters and the backed implementations, in other words it felt like there was heavy coupling between the mysql2 and pg gems and the interface exposed to AR.

Given that https://github.com/trilogy-libraries/activerecord-trilogy-adapter is also aiming to become an adapter, we might see more effort to improve the "interface" / "adapter" split. If that happens, I think it would become easier to implement an adapter for the db gem.

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

2 participants