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: pg_rls.rb
    path of file: ./repos/pg_rls/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'active_record'
require 'forwardable'
req
    
    def establish_new_connection!(admin: false)
      self.as_db_admin = admin

      execute_rls_in_shards do |connection_class, pool|
        connection_class.remove_connection
        connection_class.establish_connection(pool.db_config)
      end
    end