Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

DBIx::Class::Helper::Schema::DidYouMean - Nice error messages when you misspell the name of a ResultSet

Author

       Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>

Description

       This helper captures errors thrown when you use the "resultset" method on your schema and typo the source
       name.  It tries to highlight the best guess as to which you meant to type.

Name

       DBIx::Class::Helper::Schema::DidYouMean - Nice error messages when you misspell the name of a ResultSet

Synopsis

        package MyApp::Schema;

        __PACKAGE__->load_components('Helper::Schema::DidYouMean');

       Elsewhere:

        $schema->resultset('Usre')->search(...)->...

       And a nice exception gets thrown:

        The ResultSet "Usre" is not part of your schema.

        To help you debug this issue, here's a list of the actual sources that the
        schema knows about:

            Account
            Permission
            Role
          * User <-- Possible Match

See Also