sqlite

package
v1.5.33 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package sqlite extracts RPM package information from SQLite databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPMDB

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

RPMDB is a handle to a SQLite RPM database.

func Open

func Open(f string) (*RPMDB, error)

Open opens the named SQLite database and interprets it as an RPM database.

Must be a file on-disk. This is a limitation of the underlying SQLite library.

The returned RPMDB struct must have its Close method called, or the process may panic.

func (*RPMDB) AllHeaders added in v1.4.9

func (db *RPMDB) AllHeaders(ctx context.Context) ([]io.ReaderAt, error)

AllHeaders returns ReaderAts for all RPM headers in the database.

func (*RPMDB) Close

func (db *RPMDB) Close() error

Close releases held resources.

This must be called when the RPMDB is no longer needed, or the process may panic.

func (*RPMDB) Validate added in v1.5.22

func (db *RPMDB) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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