Sha256: e0f9546a2ceeb65b235109ac8019822b2acf449b115d57e7121227b28b9ce8ca
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
module DataObjects # Abstract class to read rows from a query result class Reader # Return the array of field names def fields raise NotImplementedError.new end # Return the array of field values for the current row. Not legal after next! has returned false or before it's been called def values raise NotImplementedError.new end # Close the reader discarding any unread results. def close raise NotImplementedError.new end # Discard the current row (if any) and read the next one (returning true), or return nil if there is no further row. def next! raise NotImplementedError.new end # Return the number of fields in the result set. def field_count raise NotImplementedError.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.0 | lib/data_objects/reader.rb |
data_objects-0.9.12 | lib/data_objects/reader.rb |