MCPcopy Create free account

hub / github.com/mergestat/mergestat-lite / functions

Functions388 in github.com/mergestat/mergestat-lite

↓ 46 callersFunctionRowContent
(rows *sql.Rows)
extensions/internal/tools/tools.go:12
↓ 35 callersFunctiont1f0
t1f0 converts a bool to an int
extensions/internal/github/utils.go:81
↓ 31 callersFunctionhandleExitError
handleExitError should be used for any errors that should stop execution of the CLI (exit) it will report an error with the logger and exit with code
cmd/root.go:77
↓ 30 callersMethodClose
()
extensions/internal/git/log.go:342
↓ 27 callersMethodOpen
Open opens the git repository specified by path. The path need not be a file system path only and can also represent a networked resource. The impleme
extensions/services/locator.go:16
↓ 19 callersFunctionConnect
Connect opens a connection with the sqlite3 database using the given data source address and pings it to check liveliness.
extensions/internal/github/github_test.go:66
↓ 19 callersFunctionnewRecorder
(t *testing.T)
extensions/internal/github/github_test.go:25
↓ 13 callersMethodNext
()
extensions/internal/git/log.go:329
↓ 10 callersFunctionWithContextValue
WithContextValue sets a value on the options context. It will override any existing value set with the same key
extensions/options/options.go:137
↓ 10 callersFunctionWriteTo
(rows *sql.Rows, w io.Writer, format string, interactive bool)
pkg/display/display.go:13
↓ 10 callersFunctionrepoOwnerAndName
repoOwnerAndName returns the "owner" and "name" (respective return values) or an error given the inputs to the iterator. This allows for both `SELECT
extensions/internal/github/utils.go:101
↓ 9 callersFunctionorderByToGitHubOrder
orderByToGitHubOrder is a helper that takes a boolean indicating whether DESC or ASC and returns a corresponding OrderDirection from the githubv4 libr
extensions/internal/github/utils.go:90
↓ 8 callersMethodClose
()
cmd/serve.go:39
↓ 8 callersMethodView
()
cmd/summarize/blame/blame.go:361
↓ 7 callersFunctionConnect
Connect opens a connection with the sqlite3 database using the given data source address and pings it to check liveliness.
extensions/internal/git/native/native_test.go:32
↓ 7 callersFunctionRegisterFn
(fns ...options.OptionFn)
extensions/extensions.go:18
↓ 7 callersMethodView
()
cmd/summarize/commits/commits.go:366
↓ 6 callersFunctionConnect
Connect opens a connection with the sqlite3 database using the given data source address and pings it to check liveliness.
extensions/internal/git/git_test.go:32
↓ 6 callersFunctionGetDefaultRepoFromCtx
GetDefaultRepoFromCtx looks up the defaultRepoPath key in the supplied context and returns it if set, otherwise it returns the current working directo
extensions/internal/git/utils/utils.go:19
↓ 6 callersFunctionWithExtraFunctions
WithExtraFunctions configures the extension to also register the bundled utility sql routines.
extensions/options/options.go:72
↓ 5 callersMethodLookup
Lookup receives a name/email pair and finds the first proper name/email pair
pkg/mailmap/mailmap.go:64
↓ 5 callersMethodNext
()
extensions/internal/git/native/files.go:182
↓ 5 callersFunctiongoModVersionToVersion
(v module.Version)
extensions/internal/golang/go_mod_to_json.go:51
↓ 5 callersMethodhandleErr
handleErr is a helper for writing errors to the http response
cmd/serve.go:44
↓ 4 callersFunctionCachedLocator
CachedLocator is decorator function that takes a RepoLocator instance and returns another one that caches output from the underlying locator using pat
pkg/locator/locator.go:37
↓ 4 callersFunctionMultiLocator
MultiLocator returns a locator service that work with multiple git protocols and is able to pick the correct underlying locator based on path provided
pkg/locator/locator.go:191
↓ 4 callersFunctionWithRepoLocator
WithRepoLocator uses the provided locator implementation for locating and opening git repositories.
extensions/options/options.go:131
↓ 4 callersFunctioncsvDisplay
(rows *sql.Rows, commaChar rune, noHeader bool, writer io.Writer)
pkg/display/display.go:90
↓ 3 callersFunctionParse
Parse takes an input mailmap string and parses it into a MailMap struct
pkg/mailmap/mailmap.go:16
↓ 3 callersFunctionWithGitHub
WithGitHub configures the extension to also register the GitHub related tables and funcs
extensions/options/options.go:77
↓ 3 callersFunctionWithNPM
WithNPM configures the extension to also register the NPM related tables and funcs
extensions/options/options.go:112
↓ 3 callersFunctionWithSourcegraph
WithSourcegraph configures the extension to also register the Sourcegraph related tables and funcs
extensions/options/options.go:102
↓ 3 callersMethodlogger
()
extensions/internal/github/repo_prs.go:137
↓ 3 callersMethodlogger
()
extensions/internal/github/repo_issues.go:119
↓ 3 callersMethodrenderDurationString
(d time.Duration)
cmd/summarize/blame/blame.go:166
↓ 2 callersMethodGetInt
GetInt retrieves a key from the context and tries to parse it as an int. The second return val (bool) is false if the key could not be parsed or is un
extensions/services/context.go:14
↓ 2 callersMethodPrintJSON
PrintJSON outputs summary results as a JSON object
cmd/summarize/blame/blame.go:391
↓ 2 callersMethodPrintNoTTY
PrintNoTTY prints a version of output with no terminal styles
cmd/summarize/blame/blame.go:374
↓ 2 callersFunctionRegister
Register registers golang related functionality as a SQLite extension
extensions/internal/golang/golang.go:10
↓ 2 callersFunctionRegister
Register registers helpers as a SQLite extension
extensions/internal/helpers/helpers.go:10
↓ 2 callersFunctionRegister
Register registers enry related functionality as a SQLite extension
extensions/internal/enry/enry.go:10
↓ 2 callersFunctionaffiliationsFromString
affiliationsFromString takes a CSV list of repository affiliations as text and returns a list for use in the GraphQL request
extensions/internal/github/utils.go:115
↓ 2 callersFunctiondec
(str string)
extensions/internal/git/utils.go:15
↓ 2 callersFunctiondetermineCloneDir
determineCloneDir returns the path to a directory on disk where a repository will be cloned to given a baseCloneDir. If baseCloneDir == "", a tmp dir
pkg/locator/locator.go:59
↓ 2 callersFunctionenc
(buf []byte)
extensions/internal/git/utils.go:14
↓ 2 callersFunctioneof
returns true if error is an end-of-file error
extensions/internal/git/utils.go:12
↓ 2 callersFunctiongitFileModeObjectTypeFromUint16
gitFileModeObjectTypeFromUint16 takes a git stats file mode and returns the GitFileModeObjectType. See here for more info on the modes: https://unix.s
extensions/internal/git/native/stats.go:40
↓ 2 callersMethodloadAuthorCommitSummary
()
cmd/summarize/commits/commits.go:200
↓ 2 callersMethodloadBlameAuthorSummary
()
cmd/summarize/blame/blame.go:153
↓ 2 callersMethodloadBlameSummary
()
cmd/summarize/blame/blame.go:140
↓ 2 callersMethodloadCommitSummary
()
cmd/summarize/commits/commits.go:180
↓ 2 callersMethodlogger
()
extensions/internal/github/repo_commits.go:141
↓ 2 callersMethodlogger
()
extensions/internal/github/pr_comments.go:93
↓ 2 callersMethodlogger
()
extensions/internal/github/repo_branch_protection.go:96
↓ 2 callersMethodlogger
()
extensions/internal/github/pr_reviews.go:100
↓ 2 callersMethodlogger
()
extensions/internal/github/branches.go:81
↓ 2 callersMethodlogger
()
extensions/internal/github/pr_commits.go:97
↓ 2 callersMethodlogger
()
extensions/internal/github/issues_comments.go:93
↓ 2 callersMethodlogger
()
extensions/internal/github/org_audit_log.go:92
↓ 2 callersMethodlogger
()
extensions/internal/github/org_repos.go:127
↓ 2 callersMethodlogger
()
extensions/internal/github/user_repos.go:127
↓ 2 callersMethodlogger
()
extensions/internal/github/starred_repos.go:82
↓ 2 callersMethodlogger
()
extensions/internal/github/stargazers.go:88
↓ 2 callersFunctionnewRecorder
(t *testing.T)
extensions/internal/npm/npm_test.go:38
↓ 2 callersMethodpreloadBlame
()
cmd/summarize/blame/blame.go:131
↓ 2 callersMethodpreloadCommits
()
cmd/summarize/commits/commits.go:159
↓ 2 callersFunctionregisterExt
()
cmd/setup.go:17
↓ 2 callersMethodrenderBlameAuthorSummary
(limit int)
cmd/summarize/blame/blame.go:254
↓ 2 callersMethodrenderBlameSummaryTable
(boldHeader bool)
cmd/summarize/blame/blame.go:191
↓ 2 callersMethodrenderCommitAuthorSummary
(limit int)
cmd/summarize/commits/commits.go:269
↓ 2 callersMethodrenderCommitSummaryTable
(boldHeader bool)
cmd/summarize/commits/commits.go:213
↓ 1 callersFunctionConnect
Connect opens a connection with the sqlite3 database using the given data source address and pings it to check liveliness.
extensions/internal/sourcegraph/sourcegraph_test.go:66
↓ 1 callersFunctionExecute
Execute executes the root command
cmd/root.go:154
↓ 1 callersFunctionFind
Find finds and return the named query
pkg/query/queries.go:35
↓ 1 callersMethodGetBool
GetBool retrieves a key from the context and returns true if it matches the string "true" (case insensitive), otherwise it returns false if the key is
extensions/services/context.go:29
↓ 1 callersFunctionGetGitHubPerPageFromCtx
GetGitHubPerPageFromCtx looks up the githubPerPage key in the supplied context and returns it if set, otherwise it returns a default of 50
extensions/internal/github/utils.go:72
↓ 1 callersFunctionGetGitHubRateLimitFromCtx
GetGitHubRateLimitFromCtx looks up the githubRateLimit key in the supplied context and parses it to return a client side rate limit in the form "(numb
extensions/internal/github/utils.go:37
↓ 1 callersFunctionGetGitHubTokenFromCtx
GetGitHubTokenFromCtx looks up the githubToken key in the supplied context and returns it if set
extensions/internal/github/utils.go:28
↓ 1 callersMethodGetPackage
GetPackage makes an HTTP request to https://registry.npmjs.org/<<packageName>> and returns the JSON response
extensions/internal/npm/npm.go:38
↓ 1 callersMethodGetPackageVersion
GetPackageVersion makes an HTTP request to https://registry.npmjs.org/<<packageName>>/<<version>> and returns the JSON response
extensions/internal/npm/npm.go:61
↓ 1 callersFunctionGetSourcegraphTokenFromCtx
GetSourcegraphTokenFromCtx looks up the sourcegraphToken key in the supplied context and returns it if set
extensions/internal/sourcegraph/utils.go:18
↓ 1 callersFunctionHttpLocator
HttpLocator returns a repo locator capable of cloning remote http repositories on-demand into temporary storage. It is recommended that you club it wi
pkg/locator/locator.go:100
↓ 1 callersFunctionLoggingLocator
LoggingLocator returns a locator that logs
pkg/locator/locator.go:217
↓ 1 callersFunctionNewBlameModule
NewBlameModule returns the implementation of a table-valued-function for accessing git blame
extensions/internal/git/native/blame.go:27
↓ 1 callersFunctionNewBranchModule
(opts *Options)
extensions/internal/github/branches.go:155
↓ 1 callersFunctionNewClient
NewClient creates a new API client from an *http.Client. Pass nil to use http.DefaultClient
extensions/internal/npm/npm.go:26
↓ 1 callersFunctionNewCloneFn
NewCloneFn returns a new CloneFn implementation
extensions/internal/git/clone.go:21
↓ 1 callersFunctionNewFilesModule
NewFilesModule returns the implementation of a table-valued-function for accessing the content of files in git
extensions/internal/git/native/files.go:27
↓ 1 callersFunctionNewGitHubUserFunc
(opts *Options)
extensions/internal/github/user_info.go:72
↓ 1 callersFunctionNewGrepModule
NewStatsModule returns the implementation of a table-valued-function for grep
extensions/internal/helpers/grep.go:24
↓ 1 callersFunctionNewIssueCommentsModule
(opts *Options)
extensions/internal/github/issues_comments.go:199
↓ 1 callersFunctionNewIssuesModule
(opts *Options)
extensions/internal/github/repo_issues.go:288
↓ 1 callersFunctionNewLogModule
NewLogModule returns a new `git log` virtual table
extensions/internal/git/log.go:18
↓ 1 callersFunctionNewOrgAuditModule
(opts *Options)
extensions/internal/github/org_audit_log.go:186
↓ 1 callersFunctionNewOrgReposModule
(opts *Options)
extensions/internal/github/org_repos.go:315
↓ 1 callersFunctionNewPRCommentsModule
(opts *Options)
extensions/internal/github/pr_comments.go:199
↓ 1 callersFunctionNewPRCommitsModule
(opts *Options)
extensions/internal/github/pr_commits.go:212
↓ 1 callersFunctionNewPRModule
(opts *Options)
extensions/internal/github/repo_prs.go:375
↓ 1 callersFunctionNewPRReviewsModule
(opts *Options)
extensions/internal/github/pr_reviews.go:236
↓ 1 callersFunctionNewProtectionsModule
(opts *Options)
extensions/internal/github/repo_branch_protection.go:212
next →1–100 of 388, ranked by callers