(ctx context.Context, orgName, name string)
| 413 | } |
| 414 | |
| 415 | func (c *connection) FindProjectByName(ctx context.Context, orgName, name string) (*database.Project, error) { |
| 416 | res := &projectDTO{} |
| 417 | err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT p.* FROM projects p JOIN orgs o ON p.org_id = o.id WHERE lower(p.name)=lower($1) AND lower(o.name)=lower($2)", name, orgName).StructScan(res) |
| 418 | if err != nil { |
| 419 | return nil, parseErr("project", err) |
| 420 | } |
| 421 | return c.projectFromDTO(res) |
| 422 | } |
| 423 | |
| 424 | func (c *connection) FindProjectsByNameAndUser(ctx context.Context, name, userID string) ([]*database.Project, error) { |
| 425 | var res []*projectDTO |
nothing calls this directly
no test coverage detected