udemy-go-web-1/internal/repository/driverrepo/driverrepo.go

21 lines
318 B
Go

package driverrepo
import (
"go-udemy-web-1/internal/repository"
)
type (
sqlDriverRepo struct{}
sqlcDriverRepo struct{}
)
var dbConn = &repository.DB{}
func NewSqlRepo() repository.DatabaseDriverRepo {
return &sqlDriverRepo{}
}
func NewSqlcRepo() repository.DatabaseDriverRepo {
return &sqlcDriverRepo{}
}