Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: Perl | Size: 0.57 KB | Hits: 37 | Expires: Never
Copy text to clipboard
  1. #!perl
  2. #$ENV{DBIC_TRACE} = 1;
  3.  
  4. use strict;
  5. use warnings;
  6.  
  7. use feature ':5.10';
  8.  
  9. use FindBin;
  10. use lib "$FindBin::Bin/../lib";
  11. use ACD::Schema;
  12. use Config::JFDI;
  13. use Devel::REPL;
  14. my $config = Config::JFDI->new(name => 'acd', path => "$FindBin::Bin/../acd");
  15. my $config_hash = $config->get;
  16. my $connect_info = $config_hash->{Model}{DB}{connect_info};
  17. my $schema = ACD::Schema->connect($connect_info);
  18. $schema->storage->ensure_connected;
  19.  
  20. my $repl = Devel::REPL->new;
  21. $repl->load_plugin($_) for qw(OutputCache MultiLine::PPI Colors Timing History LexEnv);
  22. $repl->run