SQL::Composer::Join - build joins
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']
Accepts and builds join statement using these parameters:
<op> JOIN <source> AS <as> ( ON <on> | <USING> )
To install SQL::Composer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Composer
CPAN shell
perl -MCPAN -e shell install SQL::Composer
For more information on module installation, please visit the detailed CPAN module installation guide.