MCPcopy Create free account
hub / github.com/rilldata/rill / DeleteProject

Method DeleteProject

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

Source from the content-addressed store, hash-verified

495}
496
497func (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
502func (c *connection) UpdateProject(ctx context.Context, id string, opts *database.UpdateProjectOptions) (*database.Project, error) {
503 if err := database.Validate(opts); err != nil {

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected