Class::ReluctantORM::SQL::From - Represent SQL FROM clauses
# Save yourself some typing use Class::ReluctantORM::SQL::Aliases; # Make a From clause using an existing Relation my $table = Table->new(...); my $from1 = From->new($table); my $join = Join->new(...); my $from2 = From->new($join); # Examine the From clause $rel = $from->root_relation(); # List all referenced tables @tables = $from->tables(); # List all available (not referenced) columns @columns = $from->columns();
Represent a SQL FROM clause, including join information.
Creates a new FROM clause using the given Class::ReluctantORM::SQL::From::Relation as the base.
To install Class::ReluctantORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::ReluctantORM
CPAN shell
perl -MCPAN -e shell install Class::ReluctantORM
For more information on module installation, please visit the detailed CPAN module installation guide.