Class/Module Index [+]

Quicksearch

Sequel::Mock::Dataset

Constants

DatasetClass

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

columns(*cs) click to toggle source

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.

# File lib/sequel/adapters/mock.rb, line 350
def columns(*cs)
  if cs.empty?
    super
  else
    @columns = cs
    self
  end
end
fetch_rows(sql, &block) click to toggle source
# File lib/sequel/adapters/mock.rb, line 359
def fetch_rows(sql, &block)
  execute(sql, &block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.