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 321
321:       def columns(*cs)
322:         if cs.empty?
323:           super
324:         else
325:           self.columns = cs
326:           self
327:         end
328:       end

[Source]

     # File lib/sequel/adapters/mock.rb, line 330
330:       def fetch_rows(sql, &block)
331:         execute(sql, &block)
332:       end

[Validate]