Methods
Public Instance
Public Instance methods
_fetch()
The fetch setting for this dataset, if it has been overridden
[show source]
# File lib/sequel/adapters/mock.rb 318 def _fetch 319 cache_get(:_fetch) || @opts[:fetch] 320 end
autoid()
The autoid setting for this dataset, if it has been overridden
[show source]
# File lib/sequel/adapters/mock.rb 313 def autoid 314 cache_get(:_autoid) || @opts[:autoid] 315 end
columns(*cs)
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.
[show source]
# File lib/sequel/adapters/mock.rb 330 def columns(*cs) 331 if cs.empty? 332 super 333 else 334 self.columns = cs 335 self 336 end 337 end
fetch_rows(sql, &block)
[show source]
# File lib/sequel/adapters/mock.rb 339 def fetch_rows(sql, &block) 340 execute(sql, &block) 341 end
numrows()
The numrows setting for this dataset, if it has been overridden
[show source]
# File lib/sequel/adapters/mock.rb 323 def numrows 324 cache_get(:_numrows) || @opts[:numrows] 325 end
quote_identifiers?()
[show source]
# File lib/sequel/adapters/mock.rb 343 def quote_identifiers? 344 @opts.fetch(:quote_identifiers, db.send(:quote_identifiers_default)) 345 end
with_autoid(autoid)
Return cloned dataset with the autoid setting modified
[show source]
# File lib/sequel/adapters/mock.rb 348 def with_autoid(autoid) 349 clone(:autoid=>autoid) 350 end
with_fetch(fetch)
Return cloned dataset with the fetch setting modified
[show source]
# File lib/sequel/adapters/mock.rb 353 def with_fetch(fetch) 354 clone(:fetch=>fetch) 355 end
with_numrows(numrows)
Return cloned dataset with the numrows setting modified
[show source]
# File lib/sequel/adapters/mock.rb 358 def with_numrows(numrows) 359 clone(:numrows=>numrows) 360 end