Method: ActiveRecord::HyperBase.set_default_options

Defined in:
lib/hyper_record.rb

.set_default_options(options) ⇒ Object

Each hypertable query requires some default options (e.g., table name) that are set here if not specified in the query.



324
325
326
327
328
329
330
331
332
# File 'lib/hyper_record.rb', line 324

def set_default_options(options)
  options[:table_name] ||= table_name
  options[:columns] ||= columns

  # Don't request the ROW key explicitly, it always comes back
  options[:select] ||= qualified_column_names_without_row_key.map{|c| 
    connection.hypertable_column_name(c, table_name)
  }
end