Resolves the SQL benchmark root from either the repository root or the benchmarks crate manifest directory.
()
| 95 | /// Resolves the SQL benchmark root from either the repository root or the |
| 96 | /// benchmarks crate manifest directory. |
| 97 | fn default_benchmark_dir() -> PathBuf { |
| 98 | let repo_root_path = PathBuf::from("benchmarks/sql_benchmarks"); |
| 99 | if repo_root_path.exists() { |
| 100 | repo_root_path |
| 101 | } else { |
| 102 | PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("sql_benchmarks") |
| 103 | } |
| 104 | } |