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

Method FindProject

admin/database/postgres/postgres.go:406–413  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

404}
405
406func (c *connection) FindProject(ctx context.Context, id string) (*database.Project, error) {
407 res := &projectDTO{}
408 err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT * FROM projects WHERE id=$1", id).StructScan(res)
409 if err != nil {
410 return nil, parseErr("project", err)
411 }
412 return c.projectFromDTO(res)
413}
414
415func (c *connection) FindProjectByName(ctx context.Context, orgName, name string) (*database.Project, error) {
416 res := &projectDTO{}

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
projectFromDTOMethod · 0.95
parseErrFunction · 0.85

Tested by

no test coverage detected