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

Method DeleteService

admin/database/postgres/postgres.go:1472–1475  ·  view source on GitHub ↗

DeleteService deletes a service.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1470
1471// DeleteService deletes a service.
1472func (c *connection) DeleteService(ctx context.Context, id string) error {
1473 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM service WHERE id=$1", id)
1474 return checkDeleteRow("service", res, err)
1475}
1476
1477// FindSeviceAuthTokens returns a list of service auth tokens.
1478func (c *connection) FindServiceAuthTokens(ctx context.Context, serviceID string) ([]*database.ServiceAuthToken, error) {

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected