Skip to content
  • Yorick Peterse's avatar
    Add returning IDs to Gitlab::Database.bulk_insert · e4d2883f94bd
    Yorick Peterse authored
    This adds the keyword argument "return_ids" to
    Gitlab::Database.bulk_insert. When set to `true` (and PostgreSQL is
    used) this method will return an Array of the IDs of the inserted rows,
    otherwise it will return an empty Array.
    e4d2883f94bd