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


SQL-Entity documentation  | view source Contained in the SQL-Entity distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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

DESCRIPTION

Top

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

Top

SEE ALSO

Top

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

AUTHOR

Top

Adrian Witas, adrian@webapp.strefa.pl


SQL-Entity documentation  | view source Contained in the SQL-Entity distribution.