Class Dataset
In: lib/sequel/adapters/mock.rb
Parent: Sequel::Dataset

Methods

Constants

DatasetClass = self

Attributes

_fetch  [RW]  Override the databases‘s fetch setting for this dataset
autoid  [RW]  Override the databases‘s autoid setting for this dataset
numrows  [RW]  Override the databases‘s numrows setting for this dataset

Public Instance methods

If arguments are provided, use them to set the columns for this dataset and return self. Otherwise, use the default Sequel behavior and return the columns.

[Source]

     # File lib/sequel/adapters/mock.rb, line 333
333:       def columns(*cs)
334:         if cs.empty?
335:           super
336:         else
337:           @columns = cs
338:           self
339:         end
340:       end

[Source]

     # File lib/sequel/adapters/mock.rb, line 342
342:       def fetch_rows(sql, &block)
343:         execute(sql, &block)
344:       end

[Validate]