MCPcopy
hub / github.com/google/mangle / GetFactsDuring

Method GetFactsDuring

factstore/temporal.go:510–515  ·  view source on GitHub ↗

GetFactsDuring queries both base and output stores for facts overlapping with interval.

(query ast.Atom, interval ast.Interval, fn func(TemporalFact) error)

Source from the content-addressed store, hash-verified

508
509// GetFactsDuring queries both base and output stores for facts overlapping with interval.
510func (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.
518func (s *TeeingTemporalStore) GetAllFacts(query ast.Atom, fn func(TemporalFact) error) error {

Callers

nothing calls this directly

Calls 1

GetFactsDuringMethod · 0.65

Tested by

no test coverage detected