(ctx context.Context, uuid string)
| 43 | } |
| 44 | |
| 45 | func (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 | |
| 52 | func (s *SQLiteStore) FindAll(ctx context.Context, opts event.FindOptions) ([]event.Event, error) { |
| 53 | query := `SELECT uuid, type, payload, timestamp, project, is_pinned FROM events` |