Method: Sequel::Dataset::NullDataset#columns

Defined in:
lib/sequel/extensions/null_dataset.rb

#columnsObject

Create a new dataset from the dataset (which won’t be nulled) to get the columns if they aren’t already cached.



53
54
55
56
57
58
# File 'lib/sequel/extensions/null_dataset.rb', line 53

def columns
  if cols = _columns
    return cols
  end
  self.columns = db.dataset.clone(@opts).columns
end