db

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 InsertPackageParams

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

type InsertPackageUpdateParams added in v0.14.0

type InsertPackageUpdateParams 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 Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnonymiseOrgAndRepo added in v0.13.0

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

func (*Queries) AnonymisePackageFilePathByOrg added in v0.13.0

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

func (*Queries) AnonymisePackageNameByOrg added in v0.13.0

func (q *Queries) AnonymisePackageNameByOrg(ctx context.Context, packageName string) error

func (*Queries) AnonymiseUpdatesOrgAndRepo added in v0.14.0

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

func (*Queries) AnonymiseUpdatesPackageFilePathByOrg added in v0.14.0

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

func (*Queries) AnonymiseUpdatesPackageNameByOrg added in v0.14.0

func (q *Queries) AnonymiseUpdatesPackageNameByOrg(ctx context.Context, packageName string) error

func (*Queries) AnonymiseUpdatesVersionByOrg added in v0.14.0

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

func (*Queries) AnonymiseVersionByOrg added in v0.13.0

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

func (*Queries) InsertPackage

func (q *Queries) InsertPackage(ctx context.Context, arg InsertPackageParams) error

func (*Queries) InsertPackageUpdate added in v0.14.0

func (q *Queries) InsertPackageUpdate(ctx context.Context, arg InsertPackageUpdateParams) error

func (*Queries) QueryDistinctProjects added in v0.18.0

func (q *Queries) QueryDistinctProjects(ctx context.Context, arg QueryDistinctProjectsParams) ([]QueryDistinctProjectsRow, error)

func (*Queries) QueryGolangCILintDirect added in v0.10.0

func (q *Queries) QueryGolangCILintDirect(ctx context.Context) ([]QueryGolangCILintDirectRow, error)

preferably with a `json_each` but due to https://github.com/kyleconroy/sqlc/issues/1830 we need to handle it like this

func (*Queries) QueryGolangCILintIndirect added in v0.10.0

func (q *Queries) QueryGolangCILintIndirect(ctx context.Context) ([]QueryGolangCILintIndirectRow, error)

preferably with a `json_each` but due to https://github.com/kyleconroy/sqlc/issues/1830 we need to handle it like this

func (*Queries) QueryGorillaToolkitDirect added in v0.8.0

func (q *Queries) QueryGorillaToolkitDirect(ctx context.Context) ([]QueryGorillaToolkitDirectRow, error)

preferably with a `json_each` but due to https://github.com/kyleconroy/sqlc/issues/1830 we need to handle it like this

func (*Queries) QueryGorillaToolkitIndirect added in v0.8.0

func (q *Queries) QueryGorillaToolkitIndirect(ctx context.Context) ([]QueryGorillaToolkitIndirectRow, error)

preferably with a `json_each` but due to https://github.com/kyleconroy/sqlc/issues/1830 we need to handle it like this

func (*Queries) QueryMostPopularDockerImages added in v0.6.0

func (q *Queries) QueryMostPopularDockerImages(ctx context.Context) ([]QueryMostPopularDockerImagesRow, error)

func (*Queries) QueryMostPopularPackageManagers added in v0.5.0

func (q *Queries) QueryMostPopularPackageManagers(ctx context.Context) ([]QueryMostPopularPackageManagersRow, error)

func (*Queries) RetrieveAll added in v0.4.0

func (q *Queries) RetrieveAll(ctx context.Context) ([]Renovate, error)

func (*Queries) RetrieveDistinctPackages added in v0.19.0

func (q *Queries) RetrieveDistinctPackages(ctx context.Context) ([]RetrieveDistinctPackagesRow, error)

func (*Queries) WithTx

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

type QueryDistinctProjectsParams added in v0.18.0

type QueryDistinctProjectsParams struct {
	Platform     string
	Organisation string
	Repo         string
}

type QueryDistinctProjectsRow added in v0.18.0

type QueryDistinctProjectsRow struct {
	Platform     string
	Organisation string
	Repo         string
}

type QueryGolangCILintDirectRow added in v0.10.0

type QueryGolangCILintDirectRow struct {
	Platform     string
	Organisation string
	Repo         string
}

type QueryGolangCILintIndirectRow added in v0.10.0

type QueryGolangCILintIndirectRow struct {
	Platform     string
	Organisation string
	Repo         string
}

type QueryGorillaToolkitDirectRow added in v0.8.0

type QueryGorillaToolkitDirectRow struct {
	Count       int64
	PackageName string
}

type QueryGorillaToolkitIndirectRow added in v0.8.0

type QueryGorillaToolkitIndirectRow struct {
	Count       int64
	PackageName string
}

type QueryMostPopularDockerImagesRow added in v0.6.0

type QueryMostPopularDockerImagesRow struct {
	PackageName string
	Count       int64
}

type QueryMostPopularPackageManagersRow added in v0.5.0

type QueryMostPopularPackageManagersRow struct {
	PackageManager string
	Count          int64
}

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 added in v0.14.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 RetrieveDistinctPackagesRow added in v0.19.0

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

Jump to

Keyboard shortcuts

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