Method: MultiInsert::Query#returning_id

Defined in:
lib/multi_insert/query.rb

#returning_idQuery

Add a returning clause to the query, returning IDs.

The IDs will be returned as a flat array.

Returns:



76
77
78
79
80
# File 'lib/multi_insert/query.rb', line 76

def returning_id
  @sql_returning = ::MultiInsert::QueryBuilder.returning([:id])
  @returning_flat = true
  self
end