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

Method FindByUUID

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

Source from the content-addressed store, hash-verified

43}
44
45func (s *SQLiteStore) FindByUUID(ctx context.Context, uuid string) (*event.Event, error) {
46 row := s.db.QueryRowContext(ctx,
47 `SELECT uuid, type, payload, timestamp, project, is_pinned FROM events WHERE uuid = ?`, uuid,
48 )
49 return scanEvent(row)
50}
51
52func (s *SQLiteStore) FindAll(ctx context.Context, opts event.FindOptions) ([]event.Event, error) {
53 query := `SELECT uuid, type, payload, timestamp, project, is_pinned FROM events`

Calls 1

scanEventFunction · 0.85