MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / new

Method new

graphlite/src/storage/value.rs:28–35  ·  view source on GitHub ↗

Create a new temporal value with current transaction time

(value: Value, valid_from: DateTime<Utc>)

Source from the content-addressed store, hash-verified

26impl TemporalValue {
27 /// Create a new temporal value with current transaction time
28 pub fn new(value: Value, valid_from: DateTime<Utc>) -> Self {
29 Self {
30 value: Box::new(value),
31 valid_from,
32 valid_to: None,
33 transaction_time: Utc::now(),
34 }
35 }
36
37 /// Create a temporal value with explicit time bounds
38 pub fn with_bounds(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected