Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Using a REPL

John Barrett edited this page Mar 12, 2014 · 2 revisions

Using Devel::REPL, you can query the models interactively like so (assuming you've run re.pl from your community-platform project directory):

$ use lib 'lib';

$ use DDGC;

$ my $schema = DDGC->new()->db;

$ my $r = $schema->resultset('Event::Notification::Group')->prefetch_all->search_rs( { 'user_notification.users_id' => 1 } )

$ $r->first->group_context
DDGC::DB::Result::Token::Domain

I keep a minimal reasonable repl.rc in my dotfiles repo.

Clone this wiki locally