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: adapter_methods.rb
    path of file: ./repos/pakyow/frameworks/data/lib/pakyow/data/adapters/sql/migrator
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Pakyow
  module Data
    module Adapters
      class Sql
        class Migrator
          # @api private
          module AdapterMethods
            module Mysql
              def create!
                handle_error do
                  @connection.adapter.connection.run("CREATE DATABASE `#{database}`")
                end
              end

              def drop!
                handle_error do
                  @connection.adapter.connection.run("DROP DATABASE `#{database}`")
                end
              end

              def self.globalize_connection_opts!(connection_opts)
                connection_opts[:initial] = Sql.build_opts(path: connection_opts[:path])
                connection_opts[:path] = nil
              end

              private def database
                if @connection.opts.key?(:initial)
              
    
              def drop!
                handle_error do
                  @connection.adapter.connection.run <<~SQL
                    SELECT
                    pg_terminate_backend(pid)
                    FROM
                    pg_stat_activity
                    WHERE
                    -- don't kill my own connection!
                    pid <> pg_backend_pid()
                    -- don't kill the connections to other databases
                    AND datname = '#{@connection.opts[:path]}';
                  SQL

                  @connection.adapter.connection.run("DROP DATABASE \"#{database}\"")
                end
              end

              def self.globalize_connection_opts!(connection_opts)
                connection_opts[:initial] = Sql.build_opts(path: connection_opts[:path])
                connection_opts[:path] = "template1"
              end

              private def database
                if @connection.opts.key?(:initial)
                  @connection.opts[:initial][:path]
                else
                  @connection.opts[:path]
                end
              end