NAME
SQL::Functional::Clause - Represents a portion of an SQL string
DESCRIPTION
A Moose role for representing SQL strings.
PROVIDED ATTRIBUTES
params
Arrayref of strings. These represent the bind parameters of your clause. Has auto_deref
set, so you can say:
my @params = $obj->params;
Also see get_params()
for a method that can potentially fetch the params of subclauses recursively.
PROVIDED METHODS
get_params
By default, this returns the same thing as params
. However, since many clauses will need to contain other clauses, overriding this allows for a simple mechanism for recursively picking up the params of subclauses.
REQUIRED METHODS
to_string
Returns the SQL string that represents this clause.