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

Method Add

factstore/temporal.go:422–425  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
422func (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".

Callers 2

MergeMethod · 0.95

Calls 1

AddEternalMethod · 0.65

Tested by 1