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: drop.go
    path of file: ./repos/river/internal/cmd/testdbman
    
    the code of the file until where you have to start completion: package main

import (
	"context"
	"fmt"
	"os"
	"strings"
	"time"

	"github.com/jackc/pgx/v5"
	"github.com/spf13/cobra"
)

func init() { //nolint:gochecknoinits
	rootCmd.AddCommand(dropCmd)
}

var ignoreNonExistent bool //nolint:gochecknoglobals

var dropCmd = &cobra
    
func getMgmtConn(ctx context.Context) (*pgx.Conn, error) {
	ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
	defer cancel()

	mgmtConn, err := pgx.Connect(ctx, dbURL(""))
	if err != nil {
		return nil, fmt.Errorf("unable to connect to management DB: %w", err)
	}

	return mgmtConn, nil
}