db

package
v0.0.0-...-2d3fa75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountCwe

func CountCwe() (int, error)

CountCwe count nvd table

func Get

func Get(cweID string) models.Cwe

Get select CWE information from DB.

func Init

func Init(conf c.Config) error

Init open DB connection

func InsertCwes

func InsertCwes(cwes []models.Cwe, conf c.Config) error

InsertCwes inserts Cwe Information into DB

func MigrateDB

func MigrateDB() error

MigrateDB migrates Database

func OpenDB

func OpenDB(conf c.Config) (err error)

OpenDB opens Database

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL