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

Refactor Mysql2Adapter and TrilogyAdapter #48054

Merged
merged 4 commits into from
Apr 25, 2023
Merged

Conversation

casperisfine
Copy link
Contributor

Mostly revolve around stopping to use #execute as an internal method as it forces us to expose private parameters that aren't properly documented.

Also do some minor cleanup in the recently merged TrilogyAdapter to make it more consistent with other adapters.

@casperisfine casperisfine force-pushed the cleanup-execute branch 4 times, most recently from 32e39c6 to 5b1e897 Compare April 25, 2023 07:20
`#execute` is a public method and using it internaly forces us to expose
private arguments and other dirty things.

Other adapters don't do this, so this bring MySQL in line with others.
To be consistent with other adapters.
@byroot byroot marked this pull request as ready for review April 25, 2023 07:50
@byroot byroot merged commit 611dac6 into rails:main Apr 25, 2023
8 checks passed
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 5, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 6, 2023
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 6, 2023
(and attempt to have all method naming be as similar as possible to Rails 7.1)
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 6, 2023
(and attempt to have all method naming be as similar as possible to Rails 7.1)
lorint added a commit to lorint/activerecord-trilogy-adapter that referenced this pull request Jul 19, 2023
(and attempt to have all method naming be as similar as possible to Rails 7.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants