NAME

Class::ReluctantORM::SQL::From - Represent SQL FROM clauses

SYNOPSIS

# 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();

DESCRIPTION

Represent a SQL FROM clause, including join information.

CONSTRUCTORS

$from = From->new($rel);

Creates a new FROM clause using the given Class::ReluctantORM::SQL::From::Relation as the base.