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

Method Add

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

Add adds a temporal fact to the store. Returns (true, nil) if the fact was added, (false, nil) if duplicate. Returns (false, ErrIntervalLimitExceeded) if the atom has too many intervals.

(atom ast.Atom, interval ast.Interval)

Source from the content-addressed store, hash-verified

67 // Returns (true, nil) if the fact was added, (false, nil) if duplicate.
68 // Returns (false, ErrIntervalLimitExceeded) if the atom has too many intervals.
69 Add(atom ast.Atom, interval ast.Interval) (bool, error)
70
71 // AddEternal adds a fact valid for all time (eternal/timeless).
72 AddEternal(atom ast.Atom) (bool, error)

Callers 2

evalMethod · 0.95
AddMethod · 0.65

Implementers 2

TemporalStorefactstore/temporal.go
TeeingTemporalStorefactstore/temporal.go

Calls

no outgoing calls

Tested by

no test coverage detected