Skip to main content

query_as_of_edges

Function query_as_of_edges 

Source
pub async fn query_as_of_edges(
    conn: &Connection,
    ts: &str,
) -> Result<Vec<(String, String, String, String, String)>>
Expand description

Query valid-time graph edges under current belief as of ts (§5.2).

Reads the trunk, which is what this function has always meant and what every database without a fork holds. On a forked ledger that is now a resolution rather than an unfiltered scan: before 0.14.4 it returned every lineage’s rows at once, which is the failure TraversalBuilder::build_sql’s own note describes — extra edges that look entirely ordinary.

Use query_as_of_edges_on to read another lineage. The signature here is unchanged rather than gaining a parameter, because a breaking change to the most-called reader in the crate is not what fixing its default is worth; the two share one implementation, so neither can drift from the other.