db

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 5 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 InsertRowParams

type InsertRowParams struct {
	PackageName              string
	Version                  string
	CurrentVersion           sql.NullString
	PackageManager           string
	Libyear                  float64
	VersionReleaseDate       string
	LatestVersion            string
	LatestVersionReleaseDate string
	LastSyncedAt             string
}

type Libyear

type Libyear struct {
	PackageName              string
	Version                  string
	CurrentVersion           sql.NullString
	PackageManager           string
	Libyear                  float64
	VersionReleaseDate       string
	LatestVersion            string
	LatestVersionReleaseDate string
	LastSyncedAt             string
}

type Owner

type Owner struct {
	Platform     string
	Organisation string
	Repo         string
	Owner        string
	Notes        sql.NullString
	UpdatedAt    string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) InsertRow

func (q *Queries) InsertRow(ctx context.Context, arg InsertRowParams) error

func (*Queries) RetrieveAllLibyears

func (q *Queries) RetrieveAllLibyears(ctx context.Context, arg RetrieveAllLibyearsParams) ([]RetrieveAllLibyearsRow, error)

func (*Queries) RetrieveDistinctPackagesAndVersionsWithoutSensitivePackages

func (q *Queries) RetrieveDistinctPackagesAndVersionsWithoutSensitivePackages(ctx context.Context) ([]RetrieveDistinctPackagesAndVersionsWithoutSensitivePackagesRow, error)

func (*Queries) WithTx

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

type Renovate

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 RenovateUpdate

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 RetrieveAllLibyearsParams

type RetrieveAllLibyearsParams struct {
	Platform string
	Org      string
	Repo     string
	Owner    interface{}
}

func NewRetrieveAllLibyearsParams

func NewRetrieveAllLibyearsParams(platform string, org string, repo string, owner string) RetrieveAllLibyearsParams

type RetrieveAllLibyearsRow

type RetrieveAllLibyearsRow struct {
	Platform      string
	Organisation  string
	Repo          string
	Owner         sql.NullString
	TotalLibyears sql.NullFloat64
}

type RetrieveDistinctPackagesAndVersionsWithoutSensitivePackagesRow

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

type RetrieveLibyearForSpecificRepoParams

type RetrieveLibyearForSpecificRepoParams struct {
	Platform string
	Org      string
	Repo     string
}

type RetrieveLibyearForSpecificRepoRow

type RetrieveLibyearForSpecificRepoRow struct {
	PackageName              string
	Version                  string
	CurrentVersion           sql.NullString
	PackageManager           string
	Libyear                  float64
	VersionReleaseDate       string
	LatestVersion            string
	LatestVersionReleaseDate string
	Owner                    sql.NullString
}

type Sbom

type Sbom struct {
	Platform       string
	Organisation   string
	Repo           string
	PackageName    string
	Version        sql.NullString
	CurrentVersion sql.NullString
	PackageType    string
}

type SensitivePackage

type SensitivePackage struct {
	PackagePattern string
	PackageManager sql.NullString
	MatchStrategy  string
}

Jump to

Keyboard shortcuts

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