TemporalFactStoreAdapter wraps a TemporalFactStore to provide a standard FactStore interface. Facts are returned without temporal information (using the underlying atom only). This allows temporal stores to be used where a regular FactStore is expected.
| 398 | // temporal information (using the underlying atom only). |
| 399 | // This allows temporal stores to be used where a regular FactStore is expected. |
| 400 | type TemporalFactStoreAdapter struct { |
| 401 | temporal TemporalFactStore |
| 402 | queryAt *time.Time // If set, only return facts valid at this time |
| 403 | } |
| 404 | |
| 405 | // Ensure TemporalFactStoreAdapter implements FactStore. |
| 406 | var _ FactStore = &TemporalFactStoreAdapter{} |
nothing calls this directly
no outgoing calls
no test coverage detected