Fey::Column::Alias - Represents an alias for a column
version 0.43
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.
See Fey for details on how to report bugs.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2011 - 2015 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
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.