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: oval.go
    path of file: ./repos/vuls/oval
    
    the code of the file until where you have to start completion: //go:build !scanner
// +build !scanner

package oval

import (
	"e
    
func newOvalDB(cnf config.VulnDictInterface) (ovaldb.DB, error) {
	if cnf.IsFetchViaHTTP() {
		return nil, nil
	}
	path := cnf.GetURL()
	if cnf.GetType() == "sqlite3" {
		path = cnf.GetSQLite3Path()
	}
	driver, err := ovaldb.NewDB(cnf.GetType(), path, cnf.GetDebugSQL(), ovaldb.Option{})
	if err != nil {
		if xerrors.Is(err, ovaldb.ErrDBLocked) {
			return nil, xerrors.Errorf("Failed to init OVAL DB. SQLite3: %s is locked. err: %w, ", cnf.GetSQLite3Path(), err)
		}
		return nil, xerrors.Errorf("Failed to init OVAL DB. DB Path: %s, err: %w", path, err)
	}
	return driver, nil
}