You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: batch_destroy_dependent_associations_helper.rb
    path of file: ./repos/gitlabhq/spec/support/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module BatchDestroyDependentAssociationsHelper
  pr
    
  def delete_in_batches_regexps(table, column, resource, items, batch_size: 1000)
    # rubocop:disable Layout/LineLength
    select_query = %r{^SELECT "#{table}".* FROM "#{table}" WHERE.* "#{table}"."#{column}" = #{resource.id}.*ORDER BY "#{table}"."id" ASC LIMIT #{batch_size}}
    # rubocop:enable Layout/LineLength

    [select_query] + items.map { |item| %r{^DELETE FROM "#{table}" WHERE "#{table}"."id" = #{item.id}} }
  end