LaurAchnid
LaurAchnid

Reputation: 53

DBIx::Class Testing Connection

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

Answers (1)

Richard Huxton
Richard Huxton

Reputation: 22893

You need to look in the storage sub-object.

https://metacpan.org/pod/DBIx::Class::Storage#connected

Upvotes: 2

Related Questions