NAME

Eve::PgSqlType::Array - a PostgreSQL array type.

SYNOPSIS

my $array = Eve::PgSqlType::Array->new();
my $text = $array->serialize(value => $some_array);
my $array_ref = $bigint->deserialize(value => $some_result);

DESCRIPTION

Eve::PgSqlType::Array is a PostgreSQL array type adapter class.

METHODS

get_type()

Returns

The PG_ANYARRAY type.

wrap()

Wraps an expression with CAST statement.

Arguments

expression

Returns

CAST (expression AS array)

serialize()

Formats an array object into the appropriate string array representation.

Arguments

value

Returns

The string like '{all, array, values}'.

deserialize()

Just a passthrough method to return whatever value has been passed to it.

Arguments

value

Returns

The value that is passed to the method.

SEE ALSO

DBD::Pg
Eve::PgSqlType

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

Igor Zinovyev