GetFactsAt queries both base and output stores for facts valid at time t.
(query ast.Atom, t time.Time, fn func(TemporalFact) error)
| 500 | |
| 501 | // GetFactsAt queries both base and output stores for facts valid at time t. |
| 502 | func (s *TeeingTemporalStore) GetFactsAt(query ast.Atom, t time.Time, fn func(TemporalFact) error) error { |
| 503 | if err := s.base.GetFactsAt(query, t, fn); err != nil { |
| 504 | return err |
| 505 | } |
| 506 | return s.Out.GetFactsAt(query, t, fn) |
| 507 | } |
| 508 | |
| 509 | // GetFactsDuring queries both base and output stores for facts overlapping with interval. |
| 510 | func (s *TeeingTemporalStore) GetFactsDuring(query ast.Atom, interval ast.Interval, fn func(TemporalFact) error) error { |
nothing calls this directly
no test coverage detected