The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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