1 package Lib
::Query
::File
;
29 my $fh = IO
::File
->new( $self->file, 'r' );
39 my @file = $fh->getlines;
44 ## Shift off the header
45 until ( (shift @file) =~ /^-+$/ ) { next };
47 ## ammend the lack of consistancy with the first row
48 $file[0] = "-> $file[0]";
49 foreach ( @file[1..$#file] ) {
54 foreach my $line ( @file ) {
57 next unless $line =~ /\S/;
59 if ( $line =~ /[.]{2}/ and $line !~ /:/ ) {
61 $row = Lib
::Token
::Row
::Operation
->new({
64 $self->push_row( $row );
69 elsif ( $line =~ /^Total runtime:\s+\d+.\d+\s*ms$/ ) {}
70 elsif ( $line =~ /^\(\d+ rows\)$/ ) {}
73 elsif ( $line !~ /^\s*->/ ) {
74 $row->add_operation_info_row( $line )