(ctx context.Context, id string)
| 495 | } |
| 496 | |
| 497 | func (c *connection) DeleteProject(ctx context.Context, id string) error { |
| 498 | res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM projects WHERE id=$1", id) |
| 499 | return checkDeleteRow("project", res, err) |
| 500 | } |
| 501 | |
| 502 | func (c *connection) UpdateProject(ctx context.Context, id string, opts *database.UpdateProjectOptions) (*database.Project, error) { |
| 503 | if err := database.Validate(opts); err != nil { |
nothing calls this directly
no test coverage detected