X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FAbstract%2FReference.pm;h=4752cbe410961bb555e12de2b3b69760225e40f3;hb=f2b472371e4669fb2fc3685a7426b5c4b0f522d2;hp=67567ccf178971f5eab3c9b4da20ca20930f0ade;hpb=cc230faadb608351c7b6149b2b906687f8c23687;p=scpubgit%2FQ-Branch.git diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index 67567cc..4752cbe 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -670,4 +670,29 @@ Expands the elements of the value arrayref: (?, foo, ?, ?) [ 1, 2, 3 ] +=head2 op + +If an expander is registered for the op name, delegates to the expander; if +not, expands the argument values: + + # expr + { -op => [ 'ident', 'foo.bar' ] } + + # aqt + { -ident => [ 'foo', 'bar' ] } + + # query + foo.bar + [] + + # expr + { -op => [ '=', { -ident => 'foo' }, 3 ] } + + # aqt + { -op => [ '=', { -ident => [ 'foo' ] }, { -bind => [ undef, 3 ] } ] } + + # query + foo = ? + [ 3 ] + =cut