// NewRepoEnforcer creates a new RepoEnforcer
NewRepoEnforcer creates a new RepoEnforcer
// NewRepoEnforcer creates a new RepoEnforcer
func NewRepoEnforcer(logger echo.Logger) (Repo, Enforcer, error) {
	switch config.ENV.DBDriver {
	case dialect.MySQL, dialect.Postgres, dialect.SQLite:
		re, err := newEntImpl(logger)
		if err != nil {
			return nil, nil, err
		}
		return re, re, nil
	}
	return nil, nil, fmt.Errorf("unsupported database driver %s", config.ENV.DBDriver)
}
func NewRepoEnforcer ( logger echo . Logger ) ( Repo , Enforcer , error ) { switch config . ENV . DBDriver { case dialect . MySQL , dialect . Postgres , dialect . SQLite : re , err := newEntImpl ( logger ) if err != nil { return nil , nil , err } return re , re , nil } return nil , nil , fmt . Errorf ( " " , config . ENV . DBDriver ) }
NewRepoEnforcer creates a new RepoEnforcer
NewRepoEnforcer creates a new RepoEnforcer