Method: Sequel::Postgres::PGRow::HashRow#check_columns!
- Defined in:
- lib/sequel/extensions/pg_row.rb
#check_columns! ⇒ Object
Check that the HashRow has valid columns. This should be used before all attempts to literalize the object, since literalization depends on the columns to get the column order.
206 207 208 209 210 |
# File 'lib/sequel/extensions/pg_row.rb', line 206 def check_columns! if columns.nil? || columns.empty? raise Error, 'cannot literalize HashRow without columns' end end |