NAME

SQL::Composer::Join - build joins

SYNOPSIS

my $join = SQL::Composer::Join->new(source => 'table', on => [a => 'b']);

my $sql = $join->to_sql;   # 'JOIN `table` ON `table`.`a` = ?'
my @bind = $expr->to_bind; # ['b']

DESCRIPTION

Accepts and builds join statement using these parameters:

<op> JOIN <source> AS <as> ( ON <on> | <USING> )