db

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SchemaVersion = 8

Update the schema version when the DDL changes

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func CreateDatabase

func CreateDatabase(path string) (*Database, error)

func OpenDatabase

func OpenDatabase(path string) (*Database, error)

func (*Database) Close

func (db *Database) Close() error

func (*Database) DB

func (d *Database) DB() *sql.DB

func (*Database) SaveReport

func (db *Database) SaveReport(deployment string, report scanner.ScanResult) error

func (*Database) Version

func (db *Database) Version() (int, error)

Jump to

Keyboard shortcuts

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