/// Gives the max Fact ID that this query can see
Gives the max Fact ID that this query can see
Gives the max Fact ID that this query can see
pub fn fact_id(&self) -> FactId {
        // This is super incorrect in a threaded world - another transaction could
        // advance the 'fact_id' sequence while we don't have their facts in the read snapshot.
        // Luckily, we're async, not threaded atm, so this should be safe, just leave some holes in
        // the fact_id sequence, which I'm not terribly choked up about.
        match self.trans
            .query("select nextval('fact_id')", &[])
            .unwrap()
            .get(0)
            .get(0) {
            Some(fact_id) => fact_id,
            _ => 0,
        }
    }
pub fn fact_id ( & self ) -> FactId { // This is super incorrect in a threaded world - another transaction could // advance the 'fact_id' sequence while we don't have their facts in the read snapshot. // Luckily, we're async, not threaded atm, so this should be safe, just leave some holes in // the fact_id sequence, which I'm not terribly choked up about. match self . trans . query ( " " , & [ ] ) . unwrap ( ) . get ( 0 ) . get ( 0 ) { Some ( fact_id ) => fact_id , _ => 0 , } }
Gives the max Fact ID that this query can see
Gives the max Fact ID that this query can see
&self