Adrian Witas > SQL-Entity > SQL::Entity::Column

Download:
SQL-Entity-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

SQL::Entity::Column - Entity column abstraction.

SYNOPSIS ^

    use SQL::Entity::Column ':all';

    my $column = SQL::Entity::Column->new(name  => 'name');
    or 
    my $column = sql_column(name  => 'name');

DESCRIPTION ^

Represents entities column, that maps to the table column, or sql expression.

EXPORT

None by default.

sql_column by tag 'all'

ATTRIBUTES

id

Column alias

name
table

Table association

entity

Entity association

expression

Column expression: f.e. col1 || col2

case_sensitive
queryable

Flag is column can be use in where caluse

insertable
update_allowed
unique

METHODS

initialise
as_string
subquery_to_string
as_operand

Returns column as condition operand.

sql_column

COPYRIGHT ^

The SQL::Entity::Column module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

SEE ALSO ^

SQL::Entity SQL::Entity::Table SQL::Entity::Condition

AUTHOR ^

Adrian Witas, adrian@webapp.strefa.pl

syntax highlighting: