Pretty sure that DBI Shell will do what you want, at CPAN here CPAN: DBI::Shell
In reply to Re: CPAN SQL Monitor by helphand in thread CPAN SQL Monitor by ait