my $bar_eq_str = field_op_value($bar_id, '==', 'some str');
eq_or_diff
- $visitor->generate({ foo => 1 }),
+ $visitor->recurse_where({ foo => 1 }),
$foo_eq_1,
"Single value hash";
eq_or_diff
- $visitor->generate({ foo => 1, bar => 'some str' }),
+ $visitor->recurse_where({ foo => 1, bar => 'some str' }),
{ -type => 'expr',
op => 'and',
args => [
"two keys in hash";
eq_or_diff
- $visitor->generate({ -or => { foo => 1, bar => 'some str' } }),
+ $visitor->recurse_where({ -or => { foo => 1, bar => 'some str' } }),
{ -type => 'expr',
op => 'or',
args => [
eq_or_diff
- $visitor->generate([ -and => { foo => 1, bar => 'some str' } ]),
+ $visitor->recurse_where([ -and => { foo => 1, bar => 'some str' } ]),
{ -type => 'expr',
op => 'and',
args => [
eq_or_diff
- $visitor->generate([ -and => { foo => 1, bar => 'some str' }, { foo => 1} ]),
+ $visitor->recurse_where([ -and => { foo => 1, bar => 'some str' }, { foo => 1} ]),
{ -type => 'expr',
op => 'or',
args => [
"-and as first element of array + hash";
eq_or_diff
- $visitor->generate({ foo => { '!=' => 'bar' } }),
+ $visitor->recurse_where({ foo => { '!=' => 'bar' } }),
field_op_value($foo_id, '!=', 'bar'),
"foo => { '!=' => 'bar' }";
eq_or_diff
- $visitor->generate({ foo => [ 1, 'bar' ] }),
+ $visitor->recurse_where({ foo => [ 1, 'bar' ] }),
{ -type => 'expr',
op => 'or',
args => [
"foo => [ 1, 'bar' ]";
eq_or_diff
- $visitor->generate({ foo => { -in => [ 1, 'bar' ] } }),
+ $visitor->recurse_where({ foo => { -in => [ 1, 'bar' ] } }),
{ -type => 'expr',
op => 'in',
args => [
"foo => { -in => [ 1, 'bar' ] }";
eq_or_diff
- $visitor->generate({ foo => { -not_in => [ 1, 'bar' ] } }),
+ $visitor->recurse_where({ foo => { -not_in => [ 1, 'bar' ] } }),
{ -type => 'expr',
op => 'not_in',
args => [
"foo => { -not_in => [ 1, 'bar' ] }";
eq_or_diff
- $visitor->generate({ foo => { -in => [ ] } }),
+ $visitor->recurse_where({ foo => { -in => [ ] } }),
{ -type => 'expr',
op => 'in',
args => [
}
};
eq_or_diff
- $visitor->generate( {
+ $visitor->recurse_where( {
requestor => 'inna',
worker => ['nwiger', 'rcwe', 'sfz'],
status => { '!=', 'completed' }