tokuhirom's blog

Shipped Teng::Plugin::TextTable

I shipped Teng::Plugin::TextTable 0.01.
You can dump a database data as text table.
It's useful for debugging. I often define a dump_table() function in my t/Util.pm.

You can write it as a following form with this library:

  use Amon2::Declare;

  sub dump_table {
      my $table_name = shift;
      require Teng::Plugin::TextTable; 
      return c->db->Teng::Plugin::TextTable::draw_text_table($table_name);
  }

Enjoy!

Created: 2012-11-15T10:50:34Z
Updated: 2012-11-15T10:50:34Z
comments powered by Disqus