Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mergestat/mergestat-lite
/ functions
Functions
388 in github.com/mergestat/mergestat-lite
⨍
Functions
388
◇
Types & classes
132
↓ 46 callers
Function
RowContent
(rows *sql.Rows)
extensions/internal/tools/tools.go:12
↓ 35 callers
Function
t1f0
t1f0 converts a bool to an int
extensions/internal/github/utils.go:81
↓ 31 callers
Function
handleExitError
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 callers
Method
Close
()
extensions/internal/git/log.go:342
↓ 27 callers
Method
Open
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 callers
Function
Connect
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 callers
Function
newRecorder
(t *testing.T)
extensions/internal/github/github_test.go:25
↓ 13 callers
Method
Next
()
extensions/internal/git/log.go:329
↓ 10 callers
Function
WithContextValue
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 callers
Function
WriteTo
(rows *sql.Rows, w io.Writer, format string, interactive bool)
pkg/display/display.go:13
↓ 10 callers
Function
repoOwnerAndName
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 callers
Function
orderByToGitHubOrder
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 callers
Method
Close
()
cmd/serve.go:39
↓ 8 callers
Method
View
()
cmd/summarize/blame/blame.go:361
↓ 7 callers
Function
Connect
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 callers
Function
RegisterFn
(fns ...options.OptionFn)
extensions/extensions.go:18
↓ 7 callers
Method
View
()
cmd/summarize/commits/commits.go:366
↓ 6 callers
Function
Connect
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 callers
Function
GetDefaultRepoFromCtx
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 callers
Function
WithExtraFunctions
WithExtraFunctions configures the extension to also register the bundled utility sql routines.
extensions/options/options.go:72
↓ 5 callers
Method
Lookup
Lookup receives a name/email pair and finds the first proper name/email pair
pkg/mailmap/mailmap.go:64
↓ 5 callers
Method
Next
()
extensions/internal/git/native/files.go:182
↓ 5 callers
Function
goModVersionToVersion
(v module.Version)
extensions/internal/golang/go_mod_to_json.go:51
↓ 5 callers
Method
handleErr
handleErr is a helper for writing errors to the http response
cmd/serve.go:44
↓ 4 callers
Function
CachedLocator
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 callers
Function
MultiLocator
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 callers
Function
WithRepoLocator
WithRepoLocator uses the provided locator implementation for locating and opening git repositories.
extensions/options/options.go:131
↓ 4 callers
Function
csvDisplay
(rows *sql.Rows, commaChar rune, noHeader bool, writer io.Writer)
pkg/display/display.go:90
↓ 3 callers
Function
Parse
Parse takes an input mailmap string and parses it into a MailMap struct
pkg/mailmap/mailmap.go:16
↓ 3 callers
Function
WithGitHub
WithGitHub configures the extension to also register the GitHub related tables and funcs
extensions/options/options.go:77
↓ 3 callers
Function
WithNPM
WithNPM configures the extension to also register the NPM related tables and funcs
extensions/options/options.go:112
↓ 3 callers
Function
WithSourcegraph
WithSourcegraph configures the extension to also register the Sourcegraph related tables and funcs
extensions/options/options.go:102
↓ 3 callers
Method
logger
()
extensions/internal/github/repo_prs.go:137
↓ 3 callers
Method
logger
()
extensions/internal/github/repo_issues.go:119
↓ 3 callers
Method
renderDurationString
(d time.Duration)
cmd/summarize/blame/blame.go:166
↓ 2 callers
Method
GetInt
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 callers
Method
PrintJSON
PrintJSON outputs summary results as a JSON object
cmd/summarize/blame/blame.go:391
↓ 2 callers
Method
PrintNoTTY
PrintNoTTY prints a version of output with no terminal styles
cmd/summarize/blame/blame.go:374
↓ 2 callers
Function
Register
Register registers golang related functionality as a SQLite extension
extensions/internal/golang/golang.go:10
↓ 2 callers
Function
Register
Register registers helpers as a SQLite extension
extensions/internal/helpers/helpers.go:10
↓ 2 callers
Function
Register
Register registers enry related functionality as a SQLite extension
extensions/internal/enry/enry.go:10
↓ 2 callers
Function
affiliationsFromString
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 callers
Function
dec
(str string)
extensions/internal/git/utils.go:15
↓ 2 callers
Function
determineCloneDir
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 callers
Function
enc
(buf []byte)
extensions/internal/git/utils.go:14
↓ 2 callers
Function
eof
returns true if error is an end-of-file error
extensions/internal/git/utils.go:12
↓ 2 callers
Function
gitFileModeObjectTypeFromUint16
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 callers
Method
loadAuthorCommitSummary
()
cmd/summarize/commits/commits.go:200
↓ 2 callers
Method
loadBlameAuthorSummary
()
cmd/summarize/blame/blame.go:153
↓ 2 callers
Method
loadBlameSummary
()
cmd/summarize/blame/blame.go:140
↓ 2 callers
Method
loadCommitSummary
()
cmd/summarize/commits/commits.go:180
↓ 2 callers
Method
logger
()
extensions/internal/github/repo_commits.go:141
↓ 2 callers
Method
logger
()
extensions/internal/github/pr_comments.go:93
↓ 2 callers
Method
logger
()
extensions/internal/github/repo_branch_protection.go:96
↓ 2 callers
Method
logger
()
extensions/internal/github/pr_reviews.go:100
↓ 2 callers
Method
logger
()
extensions/internal/github/branches.go:81
↓ 2 callers
Method
logger
()
extensions/internal/github/pr_commits.go:97
↓ 2 callers
Method
logger
()
extensions/internal/github/issues_comments.go:93
↓ 2 callers
Method
logger
()
extensions/internal/github/org_audit_log.go:92
↓ 2 callers
Method
logger
()
extensions/internal/github/org_repos.go:127
↓ 2 callers
Method
logger
()
extensions/internal/github/user_repos.go:127
↓ 2 callers
Method
logger
()
extensions/internal/github/starred_repos.go:82
↓ 2 callers
Method
logger
()
extensions/internal/github/stargazers.go:88
↓ 2 callers
Function
newRecorder
(t *testing.T)
extensions/internal/npm/npm_test.go:38
↓ 2 callers
Method
preloadBlame
()
cmd/summarize/blame/blame.go:131
↓ 2 callers
Method
preloadCommits
()
cmd/summarize/commits/commits.go:159
↓ 2 callers
Function
registerExt
()
cmd/setup.go:17
↓ 2 callers
Method
renderBlameAuthorSummary
(limit int)
cmd/summarize/blame/blame.go:254
↓ 2 callers
Method
renderBlameSummaryTable
(boldHeader bool)
cmd/summarize/blame/blame.go:191
↓ 2 callers
Method
renderCommitAuthorSummary
(limit int)
cmd/summarize/commits/commits.go:269
↓ 2 callers
Method
renderCommitSummaryTable
(boldHeader bool)
cmd/summarize/commits/commits.go:213
↓ 1 callers
Function
Connect
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 callers
Function
Execute
Execute executes the root command
cmd/root.go:154
↓ 1 callers
Function
Find
Find finds and return the named query
pkg/query/queries.go:35
↓ 1 callers
Method
GetBool
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 callers
Function
GetGitHubPerPageFromCtx
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 callers
Function
GetGitHubRateLimitFromCtx
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 callers
Function
GetGitHubTokenFromCtx
GetGitHubTokenFromCtx looks up the githubToken key in the supplied context and returns it if set
extensions/internal/github/utils.go:28
↓ 1 callers
Method
GetPackage
GetPackage makes an HTTP request to https://registry.npmjs.org/<<packageName>> and returns the JSON response
extensions/internal/npm/npm.go:38
↓ 1 callers
Method
GetPackageVersion
GetPackageVersion makes an HTTP request to https://registry.npmjs.org/<<packageName>>/<<version>> and returns the JSON response
extensions/internal/npm/npm.go:61
↓ 1 callers
Function
GetSourcegraphTokenFromCtx
GetSourcegraphTokenFromCtx looks up the sourcegraphToken key in the supplied context and returns it if set
extensions/internal/sourcegraph/utils.go:18
↓ 1 callers
Function
HttpLocator
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 callers
Function
LoggingLocator
LoggingLocator returns a locator that logs
pkg/locator/locator.go:217
↓ 1 callers
Function
NewBlameModule
NewBlameModule returns the implementation of a table-valued-function for accessing git blame
extensions/internal/git/native/blame.go:27
↓ 1 callers
Function
NewBranchModule
(opts *Options)
extensions/internal/github/branches.go:155
↓ 1 callers
Function
NewClient
NewClient creates a new API client from an *http.Client. Pass nil to use http.DefaultClient
extensions/internal/npm/npm.go:26
↓ 1 callers
Function
NewCloneFn
NewCloneFn returns a new CloneFn implementation
extensions/internal/git/clone.go:21
↓ 1 callers
Function
NewFilesModule
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 callers
Function
NewGitHubUserFunc
(opts *Options)
extensions/internal/github/user_info.go:72
↓ 1 callers
Function
NewGrepModule
NewStatsModule returns the implementation of a table-valued-function for grep
extensions/internal/helpers/grep.go:24
↓ 1 callers
Function
NewIssueCommentsModule
(opts *Options)
extensions/internal/github/issues_comments.go:199
↓ 1 callers
Function
NewIssuesModule
(opts *Options)
extensions/internal/github/repo_issues.go:288
↓ 1 callers
Function
NewLogModule
NewLogModule returns a new `git log` virtual table
extensions/internal/git/log.go:18
↓ 1 callers
Function
NewOrgAuditModule
(opts *Options)
extensions/internal/github/org_audit_log.go:186
↓ 1 callers
Function
NewOrgReposModule
(opts *Options)
extensions/internal/github/org_repos.go:315
↓ 1 callers
Function
NewPRCommentsModule
(opts *Options)
extensions/internal/github/pr_comments.go:199
↓ 1 callers
Function
NewPRCommitsModule
(opts *Options)
extensions/internal/github/pr_commits.go:212
↓ 1 callers
Function
NewPRModule
(opts *Options)
extensions/internal/github/repo_prs.go:375
↓ 1 callers
Function
NewPRReviewsModule
(opts *Options)
extensions/internal/github/pr_reviews.go:236
↓ 1 callers
Function
NewProtectionsModule
(opts *Options)
extensions/internal/github/repo_branch_protection.go:212
next →
1–100 of 388, ranked by callers