Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. dbicdump -o dump_directory=./lib App::Schema 'dbi:mysql:my_db:localhost:3306' root password
  2.  
  3. use utf8;
  4. package Habr::Schema;
  5. use strict;
  6. use warnings;
  7. use base 'DBIx::Class::Schema';
  8.  
  9. __PACKAGE__->load_namespaces;
  10. 1;
  11.  
  12. use lib::App::Schema;
  13. my $schema = App::Schema->connect("dbi:mysql:dbname=habr", "root", "password");
  14. my @m = $schema->resultset('User')->all;
  15.  
  16. DBIx::Class::Schema::source(): Can't find source for User at lib/Local/ThisFile.pm line 26
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement