12 |
isa => 'Str', |
isa => 'Str', |
13 |
required => 1, |
required => 1, |
14 |
default => 'select * from sponge', |
default => 'select * from sponge', |
15 |
|
documentation => 'SQL query to filter data', |
16 |
); |
); |
17 |
|
|
18 |
has table => ( |
has table => ( |
20 |
isa => 'Str', |
isa => 'Str', |
21 |
required => 1, |
required => 1, |
22 |
default => 'sponge', |
default => 'sponge', |
23 |
|
documentation => 'Name of table to create from sponge data', |
24 |
); |
); |
25 |
|
|
26 |
has 'sponge' => ( |
has 'sponge' => ( |
37 |
|
|
38 |
my $dbh=DBI->connect('dbi:AnyData(RaiseError=>1):'); |
my $dbh=DBI->connect('dbi:AnyData(RaiseError=>1):'); |
39 |
|
|
|
|
|
|
|
|
40 |
my $data = $self->sponge->{rows}; |
my $data = $self->sponge->{rows}; |
41 |
unshift @$data, $self->sponge->{NAME}; |
unshift @$data, $self->sponge->{NAME}; |
42 |
|
|