{"modulePath":"github.com/chia-network/github-bot","version":"v0.0.0-20260526172741-d74b6c8fc972","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package database\n\n## Types\n\n```go\ntype Datastore struct {\n\t// contains filtered or unexported fields\n}\n```\nDatastore manages connections and the state of the database.\n\n```go\nfunc NewDatastore(dbHost string, dbPort uint16, dbUser string, dbPass string, dbName string, tableName string) (*Datastore, error)\n```\nNewDatastore initializes a new Datastore with the given configurations.\n\n```go\nfunc (d *Datastore) GetPRData(repo string, prNumber int64) (*PRInfo, error)\n```\nGetPRData retrieves PR information from the database.\n\n```go\nfunc (d *Datastore) StorePRData(repo string, prNumber int64) error\n```\nStorePRData stores or updates PR information in the database.\n\n```go\nfunc (d *Datastore) UpdateSuppressMessages(repo string, prNumber int64, suppress bool) error\n```\nUpdateSuppressMessages updates the suppress\\_messages flag for a PR.\n\n```go\ntype PRInfo struct {\n\tRepo             string\n\tPRNumber         int64\n\tLastMessageSent  time.Time\n\tSuppressMessages bool\n}\n```\nPRInfo struct holds the PR information\n\n","path":"github.com/chia-network/github-bot/internal/database","name":"database","synopsis":"","isRedistributable":true}
