// [[Rcpp::export]] bool result_active(XPtr<PqResult> rs) { return rs.get() != NULL && rs->active(); }