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

Allow socket usage in DATABASE_URL #71

Closed dlackty closed 3 months ago

dlackty commented 4 months ago

Contrary to mysql2, trilogy will ignore the socket config if host is set.

This makes it impossible to configure a UNIX domain socket connection via DATABASE_URL, as the URL must include a host.

This is a backport of rails/rails#50349