Create a named temp file path that will be written by COPY TO. Returns the path string; the file does not exist yet.
(suffix: &str)
| 16 | /// Create a named temp file path that will be written by COPY TO. |
| 17 | /// Returns the path string; the file does not exist yet. |
| 18 | fn temp_output_path(suffix: &str) -> (tempfile::TempDir, String) { |
| 19 | let dir = tempfile::tempdir().expect("create tempdir"); |
| 20 | let path = dir.path().join(format!("output{suffix}")); |
| 21 | (dir, path.to_string_lossy().into_owned()) |
| 22 | } |
| 23 | |
| 24 | /// Count rows in a collection via SELECT COUNT(*). |
| 25 | async fn count_rows(srv: &TestServer, collection: &str) -> i64 { |
no test coverage detected