sqlite

package
v0.0.0-...-1858810 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(conn *sql.DB) *DB

func (*DB) CreateRepository

func (db *DB) CreateRepository(tx *sql.Tx, project, tag, digest string) error

func (*DB) DeleteRepository

func (db *DB) DeleteRepository(id string) error

func (*DB) GetRepository

func (db *DB) GetRepository(tx *sql.Tx, project, tag string) (*structs.Repository, error)

func (*DB) GetRepositoryByID

func (db *DB) GetRepositoryByID(id string) (*structs.Repository, error)

func (*DB) MarkDeleteRepository

func (db *DB) MarkDeleteRepository(tx *sql.Tx, id string) error

func (*DB) NewTx

func (db *DB) NewTx(ctx context.Context) (*sql.Tx, error)

func (*DB) UpdateDigestRepository

func (db *DB) UpdateDigestRepository(tx *sql.Tx, project, tag, digest string) error

Jump to

Keyboard shortcuts

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