11 |
|
|
12 |
our $dsn = 'DBI:Pg:dbname=syslog'; |
our $dsn = 'DBI:Pg:dbname=syslog'; |
13 |
our $user = 'dpavlin'; |
our $user = 'dpavlin'; |
14 |
|
our $table = 'log'; |
15 |
|
|
16 |
require 'config.pl' if -e 'config.pl'; |
require 'config.pl' if -e 'config.pl'; |
17 |
|
|
18 |
my $table = param('table') || 'log'; |
$table = param('table') || $table; |
19 |
my @columns = param('columns'); |
my @columns = param('columns'); |
20 |
@columns = ('*') unless @columns; |
@columns = ('*') unless @columns; |
21 |
my $limit = param('limit') || 1000; |
my $limit = param('limit') || 1000; |