GetFactsDuring queries both base and output stores for facts overlapping with interval.
(query ast.Atom, interval ast.Interval, fn func(TemporalFact) error)
| 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 { |
| 511 | if err := s.base.GetFactsDuring(query, interval, fn); err != nil { |
| 512 | return err |
| 513 | } |
| 514 | return s.Out.GetFactsDuring(query, interval, fn) |
| 515 | } |
| 516 | |
| 517 | // GetAllFacts queries both base and output stores for all matching facts. |
| 518 | func (s *TeeingTemporalStore) GetAllFacts(query ast.Atom, fn func(TemporalFact) error) error { |
nothing calls this directly
no test coverage detected