postgres

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New(db *sql.DB, vulnerabilitiesTableName, adivosryTableName string) (*Postgres, error)

New return *Postgres

func (*Postgres) CreateIfNotExistTables

func (m *Postgres) CreateIfNotExistTables(ctx context.Context) error

func (*Postgres) InsertVuln

func (m *Postgres) InsertVuln(ctx context.Context, vulns [][][]byte) error

func (*Postgres) InsertVulnAdvisory

func (m *Postgres) InsertVulnAdvisory(ctx context.Context, vulnds [][][]byte) error

func (*Postgres) TruncateVulnAdvisories

func (m *Postgres) TruncateVulnAdvisories(ctx context.Context) error

func (*Postgres) TruncateVulns

func (m *Postgres) TruncateVulns(ctx context.Context) error

Jump to

Keyboard shortcuts

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