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)
| 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) |
no outgoing calls
no test coverage detected