db

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateTablesQuery string

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DependabotEndoflife

type DependabotEndoflife struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
}

type EndoflifedateProduct

type EndoflifedateProduct struct {
	ProductName    string
	Cycle          string
	SupportedUntil sql.NullString
	EolFrom        sql.NullString
	InsertedAt     string
}

type InsertDependabotEndOfLifeParams

type InsertDependabotEndOfLifeParams struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
}

type InsertProductCycleParams

type InsertProductCycleParams struct {
	ProductName    string
	Cycle          string
	SupportedUntil sql.NullString
	EolFrom        sql.NullString
	InsertedAt     string
}

type InsertRenovateEndOfLifeParams

type InsertRenovateEndOfLifeParams struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnonymiseDependabotOrgAndRepo added in v0.13.0

func (q *Queries) AnonymiseDependabotOrgAndRepo(ctx context.Context) error

func (*Queries) AnonymiseRenovateOrgAndRepo added in v0.13.0

func (q *Queries) AnonymiseRenovateOrgAndRepo(ctx context.Context) error

func (*Queries) AnonymiseRenovatePackageFilePathByOrg added in v0.13.0

func (q *Queries) AnonymiseRenovatePackageFilePathByOrg(ctx context.Context, packageFilePath string) error

func (*Queries) AnonymiseRenovateVersionByOrg added in v0.13.0

func (q *Queries) AnonymiseRenovateVersionByOrg(ctx context.Context, version string) error

func (*Queries) InsertDependabotEndOfLife

func (q *Queries) InsertDependabotEndOfLife(ctx context.Context, arg InsertDependabotEndOfLifeParams) error

---------- Dependabot

func (*Queries) InsertProductCycle

func (q *Queries) InsertProductCycle(ctx context.Context, arg InsertProductCycleParams) error

func (*Queries) InsertRenovateEndOfLife

func (q *Queries) InsertRenovateEndOfLife(ctx context.Context, arg InsertRenovateEndOfLifeParams) error

---------- Renovate

func (*Queries) RetrieveDependabotEndOfLife

func (q *Queries) RetrieveDependabotEndOfLife(ctx context.Context) ([]RetrieveDependabotEndOfLifeRow, error)

func (*Queries) RetrieveRenovateEndOfLife

func (q *Queries) RetrieveRenovateEndOfLife(ctx context.Context) ([]RetrieveRenovateEndOfLifeRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RenovateEndoflife

type RenovateEndoflife struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
}

type RetrieveDependabotEndOfLifeRow

type RetrieveDependabotEndOfLifeRow struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
	SupportedUntil  sql.NullString
	EolFrom         sql.NullString
}

type RetrieveRenovateEndOfLifeRow

type RetrieveRenovateEndOfLifeRow struct {
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	PackageManager  string
	PackageFilePath string
	ProductName     string
	Cycle           string
	SupportedUntil  sql.NullString
	EolFrom         sql.NullString
}

Jump to

Keyboard shortcuts

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