Class DBI::DBD::Pg::Type::ByteA
In: lib/dbd/pg/type.rb
Parent: Object

ByteA is a special escaped form of binary data, suitable for inclusion in queries.

This class is an attempt to abstract that type so you do not have to concern yourself with the conversion issues.


escape_bytea   escape_bytea   new   parse   to_s  


escaped  [R] 
original  [R] 

Public Class methods

Class method to escape the data into ByteA format.

Build a new ByteA object.

The data supplied is the unescaped binary data you wish to put in the database.

Class method to unescape the ByteA data and present it as a string.

Public Instance methods

Escapes the supplied data. Has no effect on the object.

Returns the original data.