database

package
v0.0.0-...-d74b6c8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

Datastore manages connections and the state of the database.

func NewDatastore

func NewDatastore(dbHost string, dbPort uint16, dbUser string, dbPass string, dbName string, tableName string) (*Datastore, error)

NewDatastore initializes a new Datastore with the given configurations.

func (*Datastore) GetPRData

func (d *Datastore) GetPRData(repo string, prNumber int64) (*PRInfo, error)

GetPRData retrieves PR information from the database.

func (*Datastore) StorePRData

func (d *Datastore) StorePRData(repo string, prNumber int64) error

StorePRData stores or updates PR information in the database.

func (*Datastore) UpdateSuppressMessages

func (d *Datastore) UpdateSuppressMessages(repo string, prNumber int64, suppress bool) error

UpdateSuppressMessages updates the suppress_messages flag for a PR.

type PRInfo

type PRInfo struct {
	Repo             string
	PRNumber         int64
	LastMessageSent  time.Time
	SuppressMessages bool
}

PRInfo struct holds the PR information

Jump to

Keyboard shortcuts

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