Merge merges another store into this one.
(other ReadOnlyFactStore)
| 473 | |
| 474 | // Merge merges another store into this one. |
| 475 | func (a *TemporalFactStoreAdapter) Merge(other ReadOnlyFactStore) { |
| 476 | for _, pred := range other.ListPredicates() { |
| 477 | other.GetFacts(ast.NewQuery(pred), func(fact ast.Atom) error { |
| 478 | a.Add(fact) |
| 479 | return nil |
| 480 | }) |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | // TeeingTemporalStore is an implementation of TemporalFactStore that directs all writes to |
| 485 | // an output store, while distributing reads over a read-only base store and the output store. |
nothing calls this directly
no test coverage detected