PGObject::Type::ByteString3pm
Wrapper for raw strings mapping to bytea columns.
Usage
PGObject::Type::ByteString->register();
Now all BYTEA columns will be returned as ByteString objects.
Version
Version 1.2.3
Overview
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.
Subroutines/methods
register([registry => 'default',] [types => $types_arrayref])
By default registers type PG_BYTEA.
new
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.
from_db
Returns a new PGObject::Type::ByteString object based on the supplied scalar string, or scalar string reference.
to_db
Returns the object's binary string value packaged as PG_BYTEA type/value hashref suitable for passing to DBD::Pg.
Support
You can find documentation for this module with the perldoc command.
perldoc PGObject::Type::ByteString
You can also look for information at:
- •
-
RT: CPAN's request tracker (report bugs here)
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=PGObject-Type-ByteString>
- •
-
AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/PGObject-Type-ByteString>
- •
-
CPAN Ratings
<http://cpanratings.perl.org/d/PGObject-Type-ByteString>
- •
-
Search CPAN
<http://search.cpan.org/dist/PGObject-Type-ByteString/>
Acknowledgements
License and copyright
Copyright 2016-2018 Erik Huelsmann
This program is released under the following license: BSD
Releases
5 releases since Debian 9 (Stretch); the text changed 2 times.