// DropUser removes a MySQL user if it exists, along with its privileges
DropUser removes a MySQL user if it exists, along with its privileges
// DropUser removes a MySQL user if it exists along with its privileges
func DropUser(ctx context.Context, sql SQLRunner, user, host string) error {
	query := NewQuery("DROP USER IF EXISTS ?@?;", user, host)
	if err := sql.QueryExec(ctx, query); err != nil {
		return fmt.Errorf("failed to delete user, err: %s", err)
	}
	return nil
}
func DropUser ( ctx context . Context , sql SQLRunner , user , host string ) error { query := NewQuery ( " " , user , host ) if err := sql . QueryExec ( ctx , query ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
DropUser removes a MySQL user if it exists, along with its privileges
DropUser removes a MySQL user if it exists along with its privileges