You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Mojo::Pg; fails if SQL::Abstract isn't available.
Expected behavior
Because SQL::Abstract isn't strictly required (or doesn't need to be) Mojo::Pg should not fail if Abstract cannot be found.
Actual behavior
Mojo::Pg fails to load of SQL::Abstract cannot be found.
Possible solution
Make loading it optional, kind of like how Net::DNS::Native and a few others are optional for Mojolicious. When SQL::Abstract cannot be found and isn't loaded, the abstract attribute isn't set, and the convenience methods in Mojo::Pg::Database are not created with monkey_patch.
The text was updated successfully, but these errors were encountered:
Steps to reproduce the behavior
use Mojo::Pg;
fails if SQL::Abstract isn't available.Expected behavior
Because SQL::Abstract isn't strictly required (or doesn't need to be) Mojo::Pg should not fail if Abstract cannot be found.
Actual behavior
Mojo::Pg fails to load of SQL::Abstract cannot be found.
Possible solution
Make loading it optional, kind of like how Net::DNS::Native and a few others are optional for Mojolicious. When SQL::Abstract cannot be found and isn't loaded, the abstract attribute isn't set, and the convenience methods in Mojo::Pg::Database are not created with monkey_patch.
The text was updated successfully, but these errors were encountered: