db

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 4 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 Dependabot added in v0.27.0

type Dependabot struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	PackageFilePath string
}

type DependabotEndoflife

type DependabotEndoflife struct {
	PackageName    string
	Version        string
	PackageManager 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 {
	PackageName    string
	Version        string
	PackageManager 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 {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     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, packageName string) error

TODO

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

func (*Queries) RetrieveDistinctRenovateDeps added in v0.27.0

func (q *Queries) RetrieveDistinctRenovateDeps(ctx context.Context) ([]RetrieveDistinctRenovateDepsRow, error)

---------- Renovate

func (*Queries) WithTx

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

type Renovate added in v0.27.0

type Renovate struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	PackageFilePath string
	Datasource      string
	DepTypes        string
}

type RenovateEndoflife

type RenovateEndoflife struct {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     string
	ProductName    string
	Cycle          string
}

type RenovateUpdate added in v0.27.0

type RenovateUpdate struct {
	Platform        string
	Organisation    string
	Repo            string
	PackageName     string
	Version         string
	CurrentVersion  sql.NullString
	PackageManager  string
	PackageFilePath string
	Datasource      string
	NewVersion      string
	UpdateType      string
}

type RetrieveDistinctRenovateDepsRow added in v0.27.0

type RetrieveDistinctRenovateDepsRow struct {
	PackageName    string
	Version        string
	CurrentVersion sql.NullString
	PackageManager string
	Datasource     string
}

func (RetrieveDistinctRenovateDepsRow) DependencyDetails added in v0.27.0

func (d RetrieveDistinctRenovateDepsRow) DependencyDetails() string

Jump to

Keyboard shortcuts

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