(ctx context.Context, id string)
| 404 | } |
| 405 | |
| 406 | func (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 | |
| 415 | func (c *connection) FindProjectByName(ctx context.Context, orgName, name string) (*database.Project, error) { |
| 416 | res := &projectDTO{} |
nothing calls this directly
no test coverage detected