MCPcopy
hub / github.com/tailscale/golink / DeleteStats

Method DeleteStats

db.go:210–219  ·  view source on GitHub ↗

DeleteStats deletes click stats for a link.

(short string)

Source from the content-addressed store, hash-verified

208
209// DeleteStats deletes click stats for a link.
210func (s *SQLiteDB) DeleteStats(short string) error {
211 s.mu.Lock()
212 defer s.mu.Unlock()
213
214 _, err := s.db.Exec("DELETE FROM Stats WHERE ID = ?", linkID(short))
215 if err != nil {
216 return err
217 }
218 return nil
219}

Callers 2

deleteLinkStatsFunction · 0.80

Calls 1

linkIDFunction · 0.85

Tested by 1