Created
November 23, 2010 16:47
-
-
Save plu/712081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use FindBin; | |
use lib "$FindBin::Bin/../lib"; | |
use DAO::Example::Utils qw/schema config/; | |
use Data::Dumper; | |
$Data::Dumper::Sortkeys = 1; | |
unless ( -e "$FindBin::Bin/../dao_example.db" ) { | |
schema->deploy; | |
schema->init; | |
} | |
print Dumper config; | |
print Dumper schema->resultset('Person')->active->hashref_array; | |
print Dumper schema->resultset('Person')->inactive->hashref_array; | |
print Dumper schema->resultset('Person')->by_username('plu')->prefetch_all->hashref_array; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment