NAME

Eve::PgSqlType - a base class for PostgreSQL types.

SYNOPSIS

package Eve::PgSqlType::Bigint;

use parent qw(Eve::PgSqlType);

# Some implementation here

1;

DESCRIPTION

Eve::PgSqlType is an base class for all PostgreSQL type classes.

METHODS

get_type()

It must be overridden.

Returns

A PostgreSQL data type value. See DBD::Pg for more information.

wrap()

If you need to implement some specific type you might be required to add implicitly casting statement or do another wrapping operation with the expression.

It must be overridden.

Arguments

expression

a text expression to be wrapper.

Returns

A wrapped expression text.

serialize()

Serializes a value into the database representation.

It must be overriden.

Arguments

value

a value to serialize.

Returns

A serizlized value.

deserialize()

Deserializes a value from the database representation.

It must be overriden.

Arguments

value

a value to deserialize.

Returns

A deserizlized value.

SEE ALSO

DBI
DBD::Pg

LICENSE AND COPYRIGHT

Copyright 2012 Igor Zinovyev.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

AUTHOR

Sergey Konoplev