19 lines
436 B
Go
19 lines
436 B
Go
|
package repository
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"git.dragon-labs.de/alphyron/group_helper/config"
|
||
|
"git.dragon-labs.de/alphyron/group_helper/logic"
|
||
|
)
|
||
|
|
||
|
func NewUserHelperRepository() (*logic.GroupHelperRepository, error) {
|
||
|
databaseConfig := config.DatabaseConfig{}
|
||
|
_ = databaseConfig.LoadConfig()
|
||
|
|
||
|
switch databaseConfig.DatabaseType {
|
||
|
|
||
|
}
|
||
|
|
||
|
return nil, errors.New("cannot support given database type (" + databaseConfig.DatabaseType + ")")
|
||
|
}
|