MCPcopy Create free account
hub / github.com/buggregator/server / Pin

Method Pin

internal/storage/sqlite.go:133–136  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

131}
132
133func (s *SQLiteStore) Pin(ctx context.Context, uuid string) error {
134 _, err := s.db.ExecContext(ctx, `UPDATE events SET is_pinned = 1 WHERE uuid = ?`, uuid)
135 return err
136}
137
138func (s *SQLiteStore) Unpin(ctx context.Context, uuid string) error {
139 _, err := s.db.ExecContext(ctx, `UPDATE events SET is_pinned = 0 WHERE uuid = ?`, uuid)

Callers 1

Calls

no outgoing calls

Tested by 1