Class Index [+]

Quicksearch

Sequel::Mock::Dataset

Constants

DatasetClass

Attributes

autoid[RW]

Override the databases’s autoid setting for this dataset

_fetch[RW]

Override the databases’s fetch 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 333
333:       def columns(*cs)
334:         if cs.empty?
335:           super
336:         else
337:           @columns = cs
338:           self
339:         end
340:       end
fetch_rows(sql, &block) click to toggle source
     # File lib/sequel/adapters/mock.rb, line 342
342:       def fetch_rows(sql, &block)
343:         execute(sql, &block)
344:       end

Private Instance Methods

execute(sql, opts={}, &block) click to toggle source
     # File lib/sequel/adapters/mock.rb, line 348
348:       def execute(sql, opts={}, &block)
349:         super(sql, opts.merge(:dataset=>self), &block)
350:       end
execute_dui(sql, opts={}, &block) click to toggle source
     # File lib/sequel/adapters/mock.rb, line 352
352:       def execute_dui(sql, opts={}, &block)
353:         super(sql, opts.merge(:dataset=>self), &block)
354:       end
execute_insert(sql, opts={}, &block) click to toggle source
     # File lib/sequel/adapters/mock.rb, line 356
356:       def execute_insert(sql, opts={}, &block)
357:         super(sql, opts.merge(:dataset=>self), &block)
358:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.