Method: Sequel::SQLite::DatasetMethods#insert_select

Defined in:
lib/sequel/adapters/shared/sqlite.rb

#insert_select(*values) ⇒ Object

Support insert select for associations, so that the model code can use returning instead of a separate query.



700
701
702
703
704
# File 'lib/sequel/adapters/shared/sqlite.rb', line 700

def insert_select(*values)
  return unless supports_insert_select?
  # Handle case where query does not return a row
  server?(:default).with_sql_first(insert_select_sql(*values)) || false
end