4 |
|
|
5 |
with 'Frey::Web'; |
with 'Frey::Web'; |
6 |
|
|
|
use MooseX::Types::Moose qw(Str Int ArrayRef); |
|
|
use MooseX::Types::Structured qw/Dict/; |
|
|
|
|
7 |
use DBI; |
use DBI; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
|
|
10 |
|
with 'Frey::Sponge'; # has sponge |
11 |
|
|
12 |
has 'query' => ( |
has 'query' => ( |
13 |
is => 'rw', |
is => 'rw', |
14 |
isa => 'Str', |
isa => 'Str', |
25 |
documentation => 'Name of table to create from sponge data', |
documentation => 'Name of table to create from sponge data', |
26 |
); |
); |
27 |
|
|
|
has 'sponge' => ( |
|
|
is => 'rw', |
|
|
isa => Dict[ |
|
|
rows => ArrayRef[ArrayRef], |
|
|
NAME => ArrayRef[Str], |
|
|
], |
|
|
required => 1, |
|
|
); |
|
|
|
|
28 |
sub as_data { |
sub as_data { |
29 |
my ($self) = @_; |
my ($self) = @_; |
30 |
|
|