File: dbic-console.pl

package info (click to toggle)
libsql-abstract-perl 2.000001-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 744 kB
  • sloc: perl: 3,443; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sur/bin/env perl

use warnings;
use strict;

use DBIx::Class::Storage::Debug::PrettyPrint;

my $pp = DBIx::Class::Storage::Debug::PrettyPrint->new({
   profile => 'console',
   show_progress => 1,
});

$pp->txn_begin;
$pp->query_start("SELECT a, b, c FROM foo WHERE foo.a =1 and foo.b LIKE ?", q('station'));
sleep 1;
$pp->query_end("SELECT a, b, c FROM foo WHERE foo.a =1 and foo.b LIKE ?", q('station'));
$pp->txn_commit;