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::Builder::GroupBy - Manage the list of expressions in a SQL's GROUP BY clause

SYNOPSIS

        my $groupby = SQL::Builder::GroupBy->new;

        $groupby->list_push("col*5", "foozle");
        
        # GROUP BY col*5, foozle
        print $groupby->sql

DESCRIPTION

This is a subclass of SQL::Builder::List(3)

METHODS

sql()

This utilizes SQL::Builder::List::sql(), but adds the 'GROUP BY' clause. Returns an empty string if the list of expressions is empty

init()

This calls SQL::Builder::List::init() and parens(0) to make sure parenthesis are turned off.

SEE ALSO

SQL::Builder::List(3) SQL::Builder::Base(3)