Methods
Public Instance
Protected Instance
Public Instance methods
columns()
Create a new dataset from the dataset (which won’t be nulled) to get the columns if they aren’t already cached.
[show source]
# File lib/sequel/extensions/null_dataset.rb 53 def columns 54 if cols = _columns 55 return cols 56 end 57 self.columns = db.dataset.clone(@opts).columns 58 end
delete()
Return 0 without sending a database query.
[show source]
# File lib/sequel/extensions/null_dataset.rb 61 def delete 62 0 63 end
each()
Return self without sending a database query, never yielding.
[show source]
# File lib/sequel/extensions/null_dataset.rb 66 def each 67 self 68 end
fetch_rows(sql)
Return nil without sending a database query, never yielding.
[show source]
# File lib/sequel/extensions/null_dataset.rb 71 def fetch_rows(sql) 72 nil 73 end
insert(*)
Return nil without sending a database query.
[show source]
# File lib/sequel/extensions/null_dataset.rb 76 def insert(*) 77 nil 78 end
truncate()
Return nil without sending a database query.
[show source]
# File lib/sequel/extensions/null_dataset.rb 81 def truncate 82 nil 83 end
update(v=OPTS)
Return 0 without sending a database query.
[show source]
# File lib/sequel/extensions/null_dataset.rb 86 def update(v=OPTS) 87 0 88 end
Protected Instance methods
_import(columns, values, opts)
Return nil without sending a database query.
[show source]
# File lib/sequel/extensions/null_dataset.rb 93 def _import(columns, values, opts) 94 nil 95 end