The fetch setting for this dataset, if it has been overridden
# File lib/sequel/adapters/mock.rb, line 318 def _fetch cache_get(:_fetch) || @opts[:fetch] end
The autoid setting for this dataset, if it has been overridden
# File lib/sequel/adapters/mock.rb, line 313 def autoid cache_get(:_autoid) || @opts[:autoid] end
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 330 def columns(*cs) if cs.empty? super else self.columns = cs self end end
# File lib/sequel/adapters/mock.rb, line 339 def fetch_rows(sql, &block) execute(sql, &block) end
The numrows setting for this dataset, if it has been overridden
# File lib/sequel/adapters/mock.rb, line 323 def numrows cache_get(:_numrows) || @opts[:numrows] end
# File lib/sequel/adapters/mock.rb, line 343 def quote_identifiers? @opts.fetch(:quote_identifiers, db.send(:quote_identifiers_default)) end
Return cloned dataset with the autoid setting modified
# File lib/sequel/adapters/mock.rb, line 348 def with_autoid(autoid) clone(:autoid=>autoid) end
Return cloned dataset with the fetch setting modified
# File lib/sequel/adapters/mock.rb, line 353 def with_fetch(fetch) clone(:fetch=>fetch) end
Return cloned dataset with the numrows setting modified
# File lib/sequel/adapters/mock.rb, line 358 def with_numrows(numrows) clone(:numrows=>numrows) end
# File lib/sequel/adapters/mock.rb, line 364 def execute(sql, opts=OPTS, &block) super(sql, opts.merge(:dataset=>self), &block) end
# File lib/sequel/adapters/mock.rb, line 368 def execute_dui(sql, opts=OPTS, &block) super(sql, opts.merge(:dataset=>self), &block) end
# File lib/sequel/adapters/mock.rb, line 372 def execute_insert(sql, opts=OPTS, &block) super(sql, opts.merge(:dataset=>self), &block) end
# File lib/sequel/adapters/mock.rb, line 376 def non_sql_option?(key) super || key == :fetch || key == :numrows || key == :autoid end