trilogy-libraries / activerecord-trilogy-adapter

Active Record adapter for the Trilogy database client for Rails v6.0 - v7.0.
https://github.com/trilogy-libraries/trilogy
MIT License
167 stars 16 forks source link

Rely on `AbstractMysqlAdapter#execute` #12

Closed adrianna-chang-shopify closed 1 year ago

adrianna-chang-shopify commented 1 year ago

We should rely on AbstractMysqlAdapter's #execute method so that we pull in the allow_retry option.

When set to true, the SQL statement will be retried, up to the database's configured connection_retries value, upon encountering connection-related errors.

This option is supported on AbstractAdapter and the other adapters upstream, as of https://github.com/rails/rails/pull/46273.