// Code generated by Wire. DO NOT EDIT.

//go:generate go run github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject

package accountdeletion

import (
	"github.com/authgear/authgear-server/pkg/lib/config"
	"github.com/authgear/authgear-server/pkg/lib/infra/db"
	"github.com/authgear/authgear-server/pkg/lib/infra/db/globaldb"
	"github.com/authgear/authgear-server/pkg/util/backgroundjob"
	"github.com/authgear/authgear-server/pkg/util/clock"
)

// Injectors from wire.go:

func newRunnable(pool *db.Pool, globalDBCredentials *config.GlobalDatabaseCredentialsEnvironmentConfig, databaseCfg *config.DatabaseEnvironmentConfig, clock2 clock.Clock, appContextResolver AppContextResolver, userServiceFactory UserServiceFactory) backgroundjob.Runnable {
	handle := globaldb.NewHandle(pool, globalDBCredentials, databaseCfg)
	sqlBuilder := globaldb.NewSQLBuilder(globalDBCredentials)
	sqlExecutor := globaldb.NewSQLExecutor(handle)
	store := &Store{
		Handle:      handle,
		SQLBuilder:  sqlBuilder,
		SQLExecutor: sqlExecutor,
		Clock:       clock2,
	}
	runnable := &Runnable{
		Store:              store,
		AppContextResolver: appContextResolver,
		UserServiceFactory: userServiceFactory,
	}
	return runnable
}
