|
NAMEDBI::Format - A package for displaying result tablesSYNOPSIS# create a new result object $r = DBI::Format->new('var1' => 'val1', ...); # Prepare it for output by creating a header $r->header($sth, $fh); # In a loop, display rows while ($ref = $sth->fetchrow_arrayref()) { $r->row($ref); } # Finally create a trailer $r->trailer(); DESCRIPTIONTHIS PACKAGE IS STILL VERY EXPERIMENTAL. THINGS WILL CHANGE.This package is used for making the output of DBI::Shell configurable. The idea is to derive a subclass for any kind of output table you might create. Examples are
In the future the package should also support interactive methods, for example tab completion. These are the available methods:
AVAILABLE SUBCLASSESFirst of all, you can use the DBI::Format package itself: It's not an abstract base class, but a very simple default using DBI::neat_list().Ascii boxesThis subclass is using the Box mode of the Data::ShowTable module internally. Data::ShowTable(3).RawRow is written without formating. Columns returned in comma or user defined separated list.StringRow is written using a string format. Future releases will include th ability set the string format.AUTHOR AND COPYRIGHTThis module is Copyright (c) 1997, 1998Jochen Wiedmann Am Eisteich 9 72555 Metzingen Germany Email: joe@ispsoft.de Phone: +49 7123 14887 The DBD::Proxy module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSODBI::Shell(3), DBI(3), dbish(1)
Visit the GSP FreeBSD Man Page Interface. |