From: Arthur Axel "fREW" Schmidt Date: Sat, 23 Oct 2010 21:04:36 +0000 (+0000) Subject: try DBIC colorizer! X-Git-Tag: v1.70~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48f4cadf9af707861cff8b335c1f9de1b06cb51e;p=dbsrgits%2FSQL-Abstract.git try DBIC colorizer! --- diff --git a/examples/dbic-console.pl b/examples/dbic-console.pl new file mode 100644 index 0000000..dc3b19c --- /dev/null +++ b/examples/dbic-console.pl @@ -0,0 +1,15 @@ +#!/sur/bin/env perl + +use DBIx::Class::Storage::Debug::PrettyPrint; + +my $pp = DBIx::Class::Storage::Debug::PrettyPrint->new({ + profile => 'console', + show_progress => 0, +}); + +$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; +