PGObject::Type::ByteString(3pm) User Contributed Perl Documentation PGObject::Type::ByteString(3pm)

PGObject::Type::ByteString - Wrapper for raw strings mapping to BYTEA columns.

Version 1.2.3

   PGObject::Type::ByteString->register();

Now all BYTEA columns will be returned as ByteString objects.

This module provides a basic wrapper around Perl strings, mapping them to BYTEA database columns.

PGObject::Type::ByteString objects have no traditional properties, however dereferencing them will yield the raw string they contain.

By default registers type PG_BYTEA.

Instantiates and returns a new object, based on the supplied scalar string, or scalar string reference.

Dereferencing the returned object will yield the original raw string.

Returns a new PGObject::Type::ByteString object based on the supplied scalar string, or scalar string reference.

Returns the object's binary string value packaged as PG_BYTEA type/value hashref suitable for passing to DBD::Pg.

Erik Huelsmann, "<ehuels at gmail.com>"

Please report any bugs or feature requests to "bug-pgobject-type-bytestring at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PGObject-Type-ByteString>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc PGObject::Type::ByteString

You can also look for information at:

Copyright 2016-2018 Erik Huelsmann

This program is released under the following license: BSD

2022-11-21 perl v5.36.0