From: Matt S Trout Date: Mon, 30 Sep 2019 17:35:32 +0000 (+0000) Subject: document bool expander X-Git-Tag: v1.90_01~67 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4e17ee56d6ae01a34d2c22a67e0f5e81bdfc870;p=dbsrgits%2FSQL-Abstract.git document bool expander --- diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index adb96df..ebf3407 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -625,4 +625,32 @@ next element as the value. ( x = ? OR ( y = ? OR z = ? ) OR key = ? OR lit() ) [ 1, 2, 3, 'value' ] +=head1 Default Expanders + +=head2 bool + +Turns the old -bool syntax into the value expression, i.e. + + # expr + { -bool => { -ident => 'foo' } } + + # aqt + { -ident => [ 'foo' ] } + + # query + foo + [] + +behaves the same way as the now-directly-supported + + # expr + { -ident => 'foo' } + + # aqt + { -ident => [ 'foo' ] } + + # query + foo + [] + =cut