Reputation: 53
How can I test if the DBIx::Class
connection that is attempting to be established is successful or not?
I have yet to find a way to test if the connection is made and if not, throw some kind of an error.
Upvotes: 1
Views: 170
Reputation: 22893
You need to look in the storage sub-object.
https://metacpan.org/pod/DBIx::Class::Storage#connected
Upvotes: 2