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

Method deleteConfigRecord

internal/store/postgresstore.go:556–562  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

554}
555
556func (s *PostgresStore) deleteConfigRecord(ctx context.Context) error {
557 query := fmt.Sprintf("DELETE FROM %s WHERE id = $1", s.fullTableName(s.cfg.ConfigTable))
558 if _, err := s.db.ExecContext(ctx, query, defaultConfigKey); err != nil {
559 return fmt.Errorf("postgres store: delete config: %w", err)
560 }
561 return nil
562}
563
564func (s *PostgresStore) resolveAuthPath(auth *cliproxyauth.Auth) (string, error) {
565 if auth == nil {

Callers 1

PersistConfigMethod · 0.95

Calls 1

fullTableNameMethod · 0.95

Tested by

no test coverage detected