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

RSpec.describe Migration::TableDropper do
  def table_exists?(table_name)
    DB.exec(<<~SQL) > 0
      SELEC
    
  def function_exists?(function_name, schema_name = "public")
    DB.exec(<<~SQL) > 0
      SELECT 1
      FROM information_schema.routines
      WHERE routine_type = 'FUNCTION' AND
            routine_name = '#{function_name}' AND
            specific_schema = '#{schema_name}'
    SQL
  end