DBIx::Class::Helper::Schema::DidYouMean(3pm)

DBIx::Class::Helper::Schema::DidYouMean3pm

Nice error messages when you misspell the name of a resultset

Usage

 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

Overview

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Arthur Axel "fREW" Schmidt <[email protected]>

From libdbix-class-helpers-perl 2.037000-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.