#!/usr/bin/env perl
use strict;
use warnings;
require JSON::XS;
require Tapper::Model;
my $or_dbh = Tapper::Model::model()->storage->dbh;
my $ar_chart_lines = $or_dbh->selectall_arrayref(
lines} ) {
my $hr_json;
eval {
$hr_json = JSON::XS::decode_json( $hr_chart_line->{chart_line_statement} );
};
if ( $@ ) {
warn "cannot parse json string: $@";
}
else {
if ( $hr_json->{where} ) {
for my $ar_where_clause ( @{$hr_json->{where}} ) {
my $s_operator = shift @{$ar_where_clause};
my $s_column =