NAME
SQL::Builder::PostfixOp - Represent a SQL unary (postfix) operator/expression
SYNOPSIS
Basically:
foo Bar
where foo is the expression/operand, and Bar is the operator:
my $po = SQL::Builder::PostfixOp(op => "!", oper => "foo");
# foo !
print $po->sql;
$po->parens(1);
# (foo !)
print $po->sql;
$po->op(undef);
# error
print $po->sql;
DESCRIPTION
This is a subclass of SQL::Builder::UnaryOp(3), which represents unary operations
METHODS
sql()
This method returns the SQL serialization in the format of:
$oper $op
where $oper and $op are the values of oper() and op() passed through SQL::Builder::Base::dosql(). See SQL::Builder::UnaryOp(3) for docs. If parens() returns true, the resulting expression is wrapped in parenthesis.
SEE ALSO
SQL::Builder::Base(3) SQL::Builder(3) SQL::Builder::UnaryOp(3) SQL::Builder::PrefixOp(3)