GetAllFacts queries both base and output stores for all matching facts.
(query ast.Atom, fn func(TemporalFact) error)
| 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 { |
| 519 | if err := s.base.GetAllFacts(query, fn); err != nil { |
| 520 | return err |
| 521 | } |
| 522 | return s.Out.GetAllFacts(query, fn) |
| 523 | } |
| 524 | |
| 525 | // ContainsAt checks both base and output stores. |
| 526 | func (s *TeeingTemporalStore) ContainsAt(atom ast.Atom, t time.Time) bool { |
nothing calls this directly
no test coverage detected