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

Method GetAllFacts

factstore/temporal.go:518–523  ·  view source on GitHub ↗

GetAllFacts queries both base and output stores for all matching facts.

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

Source from the content-addressed store, hash-verified

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 {
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.
526func (s *TeeingTemporalStore) ContainsAt(atom ast.Atom, t time.Time) bool {

Callers

nothing calls this directly

Calls 1

GetAllFactsMethod · 0.65

Tested by

no test coverage detected