From: Matt S Trout Date: Mon, 30 Sep 2019 17:37:06 +0000 (+0000) Subject: document row expander X-Git-Tag: v2.000000~3^2~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72e1b9262bfa1f024c9dda31adc51eb6dca56c73;p=dbsrgits%2FSQL-Abstract.git document row expander --- diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index ebf3407..67567cc 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -653,4 +653,21 @@ behaves the same way as the now-directly-supported foo [] +=head2 row + +Expands the elements of the value arrayref: + + # expr + { -row => [ 1, { -ident => 'foo' }, 2, 3 ] } + + # aqt + { -row => [ + { -bind => [ undef, 1 ] }, { -ident => [ 'foo' ] }, + { -bind => [ undef, 2 ] }, { -bind => [ undef, 3 ] }, + ] } + + # query + (?, foo, ?, ?) + [ 1, 2, 3 ] + =cut