sqlitejob

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(dbPath, blobDir string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) ExpectedSchemaVersion

func (s *Store) ExpectedSchemaVersion() int

func (*Store) GetAggregatorReleaseCacheByID

func (s *Store) GetAggregatorReleaseCacheByID(ctx context.Context, id string) (*domain.Release, error)

GetAggregatorReleaseCacheByID returns one cached release by release id.

func (*Store) MarkReleaseCacheMissing

func (s *Store) MarkReleaseCacheMissing(ctx context.Context, releaseID, reason string) error

func (*Store) MarkReleaseCached

func (s *Store) MarkReleaseCached(ctx context.Context, releaseID string, blobSize int64, blobMtimeUnix int64) error

func (*Store) Ping

func (s *Store) Ping(ctx context.Context) error

func (*Store) ReconcileBlobCacheIndex

func (s *Store) ReconcileBlobCacheIndex(ctx context.Context) error

func (*Store) ReconcileReleaseCache

func (s *Store) ReconcileReleaseCache(ctx context.Context) error

func (*Store) RunMigrations

func (s *Store) RunMigrations() error

func (*Store) SchemaVersion

func (s *Store) SchemaVersion(ctx context.Context) (int, error)

func (*Store) SearchAggregatorReleaseCache

func (s *Store) SearchAggregatorReleaseCache(ctx context.Context, query string, limit int) ([]*domain.Release, error)

SearchAggregatorReleaseCache searches cached releases by title.

func (*Store) UpsertAggregatorReleaseCache

func (s *Store) UpsertAggregatorReleaseCache(ctx context.Context, releases []*domain.Release) error

UpsertAggregatorReleaseCache stores/replaces release cache entries for Aggregator queries.

func (*Store) ValidateSchema

func (s *Store) ValidateSchema(ctx context.Context) error

Jump to

Keyboard shortcuts

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