db

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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 DepsdevCfe

type DepsdevCfe struct {
	PackageName string
	Version     string
	CveID       string
	UpdatedAt   string
}

type DepsdevDeprecated added in v0.99.0

type DepsdevDeprecated struct {
	PackageName  string
	Version      string
	PackageType  string
	IsDeprecated bool
	UpdatedAt    string
}

type DepsdevLicense

type DepsdevLicense struct {
	PackageName string
	Version     string
	License     string
	UpdatedAt   string
}

type InsertCveParams

type InsertCveParams struct {
	PackageName string
	Version     string
	CveID       string
	UpdatedAt   string
}

type InsertLicenseParams

type InsertLicenseParams struct {
	PackageName string
	Version     string
	License     string
	UpdatedAt   string
}

type InsertPackageDeprecationParams added in v0.99.0

type InsertPackageDeprecationParams struct {
	PackageName  string
	Version      string
	PackageType  string
	IsDeprecated bool
	UpdatedAt    string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) InsertCve

func (q *Queries) InsertCve(ctx context.Context, arg InsertCveParams) error

func (*Queries) InsertLicense

func (q *Queries) InsertLicense(ctx context.Context, arg InsertLicenseParams) error

func (*Queries) InsertPackageDeprecation added in v0.99.0

func (q *Queries) InsertPackageDeprecation(ctx context.Context, arg InsertPackageDeprecationParams) error

func (*Queries) WithTx

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

Jump to

Keyboard shortcuts

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