X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FAbstract%2FReference.pm;h=343f60a93824b4db4f9f33a6e9dd0d5007fac778;hb=9b49ddc3237d4efe1948503b1a90b869a0c51d4a;hp=d8f6763a733a0e756922ab300a151f0301e9d3ca;hpb=29f96af045b2d52916f3d9a6e2cd2494b19d2b54;p=scpubgit%2FQ-Branch.git diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index d8f6763..343f60a 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -20,7 +20,7 @@ comment before a code block saying C<# expr>, this is what's being described. The explicit structure that an expression is converted into before it's rendered into SQL is referred to as an abstract query tree. If you see a variable with C in the name, or a comment before a code block saying -C<# aqt>#, this is what's being described. +C<# aqt>, this is what's being described. =head2 SQL and Bind Values (query) @@ -146,7 +146,17 @@ Standard binop: bomb.status = ? [ 'unexploded' ] -Not: + +Prefix unop: + + # expr + { -op => [ '-', { -ident => 'foo' } ] } + + # query + - foo + [] + +Not as special case parenthesised unop: # expr { -op => [ 'not', { -ident => 'explosive' } ] } @@ -229,6 +239,15 @@ Comma (use -row for parens): VALUES (1, 2), (3, 4) [] +=head2 keyword + + # expr + { -keyword => 'insert_into' } + + # query + INSERT INTO + [] + =head2 statement types AQT node types are also provided for C