Fey::Column::Alias - Represents an alias for a column
my $alias = $user_id_col->alias();
This class represents an alias for a column. Column aliases allow you to use the same column in different ways multiple times in a query, which makes certain types of queries simpler to express.
This method constructs a new Fey::Column::Alias object. It takes the following parameters:
Fey::Column::Alias
column - required
This is the Fey::Column object which we are aliasing.
Fey::Column
alias_name - optional
This should be a valid column name for your DBMS. If not provided, a unique name is automatically created.
This returns the name of the column for which this object is an alias.
Returns the name for this alias.
Returns the specified attribute for the column, just like the Fey::Column methods of the same name.
Returns the Fey::Table object to which the column alias belongs, if any.
Fey::Table
Always returns false.
Returns the appropriate SQL snippet for the alias.
Returns a unique identifier for the column. This method throws an exception if the alias does not belong to a table.
This class does the Fey::Role::ColumnLike and Fey::Role::Named roles.
Dave Rolsky, <autarch@urth.org>
See Fey for details on how to report bugs.
Copyright 2006-2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Fey, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey
CPAN shell
perl -MCPAN -e shell install Fey
For more information on module installation, please visit the detailed CPAN module installation guide.