Class: Sequel::DBI::Dataset

Class | Sequel::DBI::Dataset
In: | lib/sequel_core/adapters/dbi.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows literal

### Public Instance methods

fetch_rows(sql) {|hash_row(s, r)}| ...}

[Source]

         # File lib/sequel_core/adapters/dbi.rb, line 90
     90:       def fetch_rows(sql, &block)
     91:         execute(sql) do |s|
     92:           begin
     93:             @columns = s.column_names.map{|c| output_identifier(c)}
     94:             s.fetch{|r| yield hash_row(s, r)}
     95:           ensure
     96:             s.finish rescue nil
     97:           end
     98:         end
     99:         self
    100:       end

literal(v)

[Source]

        # File lib/sequel_core/adapters/dbi.rb, line 79
    79:       def literal(v)
    80:         case v
    81:         when Time
    82:           literal(v.iso8601)
    83:         when Date, DateTime
    84:           literal(v.to_s)
    85:         else
    86:           super
    87:         end
    88:       end

[Validate]