{"modulePath":"github.com/benfred/github-analysis","version":"v0.0.0-20211231201644-24b9b75c694c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubanalysis\n\n## Types\n\n```go\ntype Database struct {\n\t*sql.DB\n}\n```\nDatabase connection to the github postgres database\n\n```go\nfunc Connect(cfg config.Config) (*Database, error)\n```\nConnect to the database\n\n```go\nfunc (conn *Database) HasRepo(repoid int64) (bool, error)\n```\nHasRepo returns whether the repo has been fetched\n\n```go\nfunc (conn *Database) HasUser(userid int64) (bool, error)\n```\nHasUser returns whether the user has been fetched\n\n```go\nfunc (conn *Database) InsertOrganizationMembers(orgid int64, orgname string, members []*github.User, statuscode int, fetchtime time.Time, upsert bool) error\n```\nInsertOrganizationMembers inserts or updates the list of public organization members in the database\n\n```go\nfunc (conn *Database) InsertRepo(statuscode *int, fetchtime *time.Time, repo *github.Repository, upsert bool) error\n```\nInsertRepo inserts a github.Repository object into the database\n\n```go\nfunc (conn *Database) InsertRepoStatus(repoid int64, reponame string, statuscode int, fetchtime time.Time, upsert bool) error\n```\nInsertRepoStatus updates the statuscode/fetchtime associated with a repo in the case that it can't be fetched\n\n```go\nfunc (conn *Database) InsertUser(statuscode *int, fetchtime *time.Time, user *github.User, upsert bool) error\n```\nInsertUser inserts a github.User object into the database\n\n```go\nfunc (conn *Database) InsertUserStatus(id int64, login string, statuscode int, fetchtime time.Time) error\n```\nInsertUserStatus updates the statuscode/fetchtime associated with a user in the case that it can't be fetched\n\n","path":"github.com/benfred/github-analysis","name":"githubanalysis","synopsis":"","isRedistributable":true}
