Class DBI::Binary
In: lib/dbi/binary.rb
Parent: Object

Encapsulates the concept of a CLOB/BLOB, which can then be passed as a bind via BaseStatement#bind_param.

This is similar to a DBI::Type class and will eventually find its way there.

See new for usage.

Methods

new   to_s  

Attributes

data  [RW] 

Public Class methods

Construct a new DBI::Binary object with the data supplied as string. This object can then be used in bound variables to represent a CLOB or BLOB type.

[Source]

    # File lib/dbi/binary.rb, line 16
16:         def initialize(data)
17:             @data = data
18:         end

Public Instance methods

Return the string representation of the DBI::Binary object.

[Source]

    # File lib/dbi/binary.rb, line 21
21:         def to_s
22:             @data
23:         end

[Validate]