Class Sequel::Mock::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 288
288:       def columns(*cs)
289:         if cs.empty?
290:           super
291:         else
292:           @columns = cs
293:           self
294:         end
295:       end

[Source]

     # File lib/sequel/adapters/mock.rb, line 297
297:       def fetch_rows(sql, &block)
298:         execute(sql, &block)
299:       end

[Validate]