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

Method DeleteServiceAuthToken

admin/database/postgres/postgres.go:1524–1527  ·  view source on GitHub ↗

DeleteServiceAuthToken deletes a service auth token.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1522
1523// DeleteServiceAuthToken deletes a service auth token.
1524func (c *connection) DeleteServiceAuthToken(ctx context.Context, id string) error {
1525 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM service_auth_tokens WHERE id=$1", id)
1526 return checkDeleteRow("service auth token", res, err)
1527}
1528
1529// DeleteExpiredServiceAuthTokens deletes expired service auth tokens.
1530func (c *connection) DeleteExpiredServiceAuthTokens(ctx context.Context, retention time.Duration) error {

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected