Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Oct 25, 2023

GitHub introduced a client library for MySQL-compatible called Trilogy.
https://github.blog/2022-08-25-introducing-trilogy-a-new-database-adapter-for-ruby-on-rails/

Rails 7.1 introduces the adapter for Trilogy officially.
https://guides.rubyonrails.org/7_1_release_notes.html#introduce-adapter-for-trilogy

This PR adds Trilogy support to ridgepole. This PR only considers Rails 7.1 because Rails added the official support in the version.
But, the Trilogy team provides the gem to support old Rails versions. trilogy-libraries/activerecord-trilogy-adapter. If we need it, I will add support to this gem too.

Trilogy returns an `Enumerator` from `Trilogy::Result#each`.
So `each.length` can't check the value correctly.
@y-yagi y-yagi marked this pull request as ready for review October 25, 2023 07:56
Copy link
Member

@winebarrel winebarrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 😃

@winebarrel winebarrel merged commit 534bc37 into ridgepole:2.0 Oct 26, 2023
@y-yagi y-yagi deleted the support-trilogy branch October 26, 2023 01:55
@winebarrel
Copy link
Member

v2.0.0.beta2 has been released.

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

Successfully merging this pull request may close these issues.

2 participants