VALUES (?, ?), (?, ?)
[ 1, 2, 3, 4 ]
+=head2 list
+
+Expects a value or an arrayref of values, expands them, and returns just
+the expanded aqt for a single entry or a comma operator for multiple:
+
+ # expr
+ { -list => [ { -ident => 'foo' } ] }
+
+ # aqt
+ { -op => [ ',', { -ident => [ 'foo' ] } ] }
+
+ # query
+ foo
+ []
+
+ # expr
+ { -list => [ { -ident => 'foo' }, { -ident => 'bar' } ] }
+
+ # aqt
+ { -op => [ ',', { -ident => [ 'foo' ] }, { -ident => [ 'bar' ] } ] }
+
+ # query
+ foo, bar
+ []
+
=head2 between op
The RHS of between must either be a pair of exprs/plain values, or a single
{ -bind => [ 'baz', 'argh' ] },
] } ] },
returning => { -op => [ ',', { -ident => [ 'id' ] } ] },
- target => { -op => [ ',', { -ident => [ 'foo' ] } ] },
+ target => { -ident => [ 'foo' ] },
} }
# query
[ ',', { -ident => [ 'bar' ] }, { -ident => [ 'baz' ] } ]
} ] },
from => { -select => {
- from => { -from_list => [ { -ident => [ 'other' ] } ] },
+ from => { -ident => [ 'other' ] },
select => { -op =>
[ ',', { -ident => [ 'bar' ] }, { -ident => [ 'baz' ] } ]
},
} },
- target => { -op => [ ',', { -ident => [ 'foo' ] } ] },
+ target => { -ident => [ 'foo' ] },
} }
# query
] },
] },
] },
- target => { -from_list => [ { -ident => [ 'foo' ] } ] },
+ target => { -ident => [ 'foo' ] },
where => { -op => [ 'not', { -ident => [ 'quux' ] } ] },
} }