The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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> )