MCPcopy Index your code
hub / github.com/rilldata/rill / FindProjectsByGitRemote

Method FindProjectsByGitRemote

admin/database/postgres/postgres.go:388–395  ·  view source on GitHub ↗
(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

386}
387
388func (c *connection) FindProjectsByGitRemote(ctx context.Context, remote string) ([]*database.Project, error) {
389 var res []*projectDTO
390 err := c.getDB(ctx).SelectContext(ctx, &res, "SELECT p.* FROM projects p WHERE lower(p.git_remote)=lower($1)", remote)
391 if err != nil {
392 return nil, parseErr("projects", err)
393 }
394 return c.projectsFromDTOs(res)
395}
396
397func (c *connection) FindProjectsByGithubInstallationID(ctx context.Context, id int64) ([]*database.Project, error) {
398 var res []*projectDTO

Callers

nothing calls this directly

Calls 4

getDBMethod · 0.95
projectsFromDTOsMethod · 0.95
parseErrFunction · 0.85
SelectContextMethod · 0.80

Tested by

no test coverage detected