NAME

SQL::Functional::Clause - Represents a portion of an SQL string

DESCRIPTION

A Moose role for representing SQL strings.

PROVIDED MOOSE TYPES

SQL::Functional::Type::Literals

An array ref of SQL::Functional::LiteralClause objects. It will automatically coerce any strings in the array to PlacheolderClauses.

SQL::Functional::Type::Clauses

An array ref of SQL::Functional::Clause objects. It will automatically coerce any strings in the array to PlaceholderClauses.

PROVIDED ATTRIBUTES

params

Type SQL::Functional::Type::Clauses. These represent the 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

As of version 0.3, this will recurse into calling params on subclauses by default. It can be overriden to get only params if need be.

REQUIRED METHODS

to_string

Returns the SQL string that represents this clause.