db

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sqlx.DB
}

DB represents the db methods that are used for the enricher

func NewDB

func NewDB(connStr string) (*DB, error)

NewDB returns a new DB for the enricher

func (*DB) CreateIssue

func (db *DB) CreateIssue(ctx context.Context, eI *v1.EnrichedIssue) error

CreateIssue creates the given enriched issue on the database

func (*DB) GetIssueByHash

func (db *DB) GetIssueByHash(hash string) (*v1.EnrichedIssue, error)

GetIssueByHash returns an issue given its hash

func (*DB) UpdateIssue

func (db *DB) UpdateIssue(ctx context.Context, eI *v1.EnrichedIssue) error

UpdateIssue updates a given enriched issue on the database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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