async fn get_leaf_from_proposal<Mode, P>( tx: &mut Transaction<Mode>, where_clause: &str, param: P, ) -> Result<Leaf2>where P: Type<Db> + for<'q> Encode<'q, Db>,