Add adds a fact as eternal (valid for all time). Note: errors from temporal store are logged but not returned per FactStore interface.
(atom ast.Atom)
| 420 | // Add adds a fact as eternal (valid for all time). |
| 421 | // Note: errors from temporal store are logged but not returned per FactStore interface. |
| 422 | func (a *TemporalFactStoreAdapter) Add(atom ast.Atom) bool { |
| 423 | added, _ := a.temporal.AddEternal(atom) |
| 424 | return added |
| 425 | } |
| 426 | |
| 427 | // Contains returns true if the fact exists (respecting queryAt if set). |
| 428 | // Per the FactStore interface contract, errors are treated as "false". |