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

Method DeleteMagicAuthToken

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

Source from the content-addressed store, hash-verified

1679}
1680
1681func (c *connection) DeleteMagicAuthToken(ctx context.Context, id string) error {
1682 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM magic_auth_tokens WHERE id=$1", id)
1683 return checkDeleteRow("magic auth token", res, err)
1684}
1685
1686func (c *connection) DeleteMagicAuthTokens(ctx context.Context, ids []string) error {
1687 _, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM magic_auth_tokens WHERE id=ANY($1)", ids)

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected