Sha256: 8305cda5c819344dcfeace01cc9de419d4c2a79ac321ad588a52bd32bac8df70
Contents?: true
Size: 685 Bytes
Versions: 20
Compression:
Stored size: 685 Bytes
Contents
module DBI # # 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. class Binary attr_accessor :data # 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. def initialize(data) @data = data end # Return the string representation of the DBI::Binary object. def to_s @data end end end
Version data entries
20 entries across 20 versions & 3 rubygems