in reply to Re^4: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace
this is what I've tried
I need to work with database of 10_000_000+ records, those do not fit just JSON.
Ok, now I've remembered on what's missing here.use strict; use DBI; use DataTables; my $dbfile = 'base.db'; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","",""); my $dt = DataTables->new(dbh => $dbh); #set table to select from $dt->tables(["t"]); #set columns to select in same order as order of columns on page $dt->columns(["LPAR", "UCODE", "BOX", "Serial Number", "Box Name", "TE +ST", "N_OF_TEST", "N_OF_ERR"]); use Mojolicious::Lite; #print json back to browser get '/data-source' => sub { my $c = shift; $dt->print_json; }; app->start;
I need to work with database of 10_000_000+ records, those do not fit just JSON.
I see that this module recently updated... How can I trust version 0.08? Author makes it clear that the module far from robust?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Perl Contempt in My Workplace
by 1nickt (Canon) on May 05, 2021 at 17:02 UTC | |
by vkon (Curate) on May 29, 2021 at 17:45 UTC | |
Re^6: Perl Contempt in My Workplace
by marto (Cardinal) on May 05, 2021 at 17:13 UTC | |
by vkon (Curate) on May 05, 2021 at 17:59 UTC | |
by 1nickt (Canon) on May 05, 2021 at 18:22 UTC | |
by vkon (Curate) on May 05, 2021 at 18:55 UTC | |
by marto (Cardinal) on May 05, 2021 at 19:02 UTC | |
| |
by hippo (Bishop) on May 05, 2021 at 18:24 UTC | |
by cavac (Parson) on May 25, 2021 at 13:25 UTC | |
|
In Section
Meditations