MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / deleteAuthRecord

Method deleteAuthRecord

internal/store/postgresstore.go:534–540  ·  view source on GitHub ↗
(ctx context.Context, relID string)

Source from the content-addressed store, hash-verified

532}
533
534func (s *PostgresStore) deleteAuthRecord(ctx context.Context, relID string) error {
535 query := fmt.Sprintf("DELETE FROM %s WHERE id = $1", s.fullTableName(s.cfg.AuthTable))
536 if _, err := s.db.ExecContext(ctx, query, relID); err != nil {
537 return fmt.Errorf("postgres store: delete auth record: %w", err)
538 }
539 return nil
540}
541
542func (s *PostgresStore) persistConfig(ctx context.Context, data []byte) error {
543 query := fmt.Sprintf(`

Callers 3

DeleteMethod · 0.95
syncAuthFileMethod · 0.95
upsertAuthRecordMethod · 0.95

Calls 1

fullTableNameMethod · 0.95

Tested by

no test coverage detected