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: store.go
    path of file: ./repos/dotenx/ao-api/stores/oauthStore
    
    the code of the file until where you have to start completion: package oauthStore

import (
	"context"
	"database/sql"
	"errors"
	"fmt"
	"log"

	"github.com/dotenx/dotenx/ao-api/db"
	"github.com/dotenx/dotenx/ao-api/models"
)

type OauthStore interface {
	AddUserProvider(ctx context.Context, userProvider models.UserProvider) error
	DeleteUserProvider(ctx context.Context, accountId, userProviderName string) error
	GetUserProviderByName(ctx context.Context, accountId, name string) (models.UserProvider, error)
	GetUserProvider
    
func (store *oauthStore) DeleteUserProvider(ctx context.Context, accountId, userProviderName string) error {

	var cnt int
	err := store.db.Connection.Get(&cnt, countExistingUserProviderStmt, accountId, userProviderName)
	if err != nil {
		return err
	}
	if cnt == 0 {
		return errors.New("provider not found")
	}

	var stmt string
	switch store.db.Driver {
	case db.Postgres:
		stmt = deleteUserProviderStmt
	default:
		return fmt.Errorf("driver not supported")
	}
	res, err := store.db.Connection.Exec(stmt, accountId, userProviderName)
	if err != nil {
		return err
	}
	if count, _ := res.RowsAffected(); count == 0 {
		return fmt.Errorf("can not delete provider")
	}
	return nil
}