(
repo: &gix::Repository,
table: String,
selected_columns: &[String],
)
| 41 | } |
| 42 | |
| 43 | fn select_gql_objects( |
| 44 | repo: &gix::Repository, |
| 45 | table: String, |
| 46 | selected_columns: &[String], |
| 47 | ) -> Result<Vec<Row>, String> { |
| 48 | match table.as_str() { |
| 49 | "refs" => select_references(repo, selected_columns), |
| 50 | "commits" => select_commits(repo, selected_columns), |
| 51 | "branches" => select_branches(repo, selected_columns), |
| 52 | "diffs" => select_diffs(repo, selected_columns), |
| 53 | "diffs_changes" => select_diffs_changes(repo, selected_columns), |
| 54 | "tags" => select_tags(repo, selected_columns), |
| 55 | _ => Ok(vec![Row { values: vec![] }]), |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | fn select_references( |
| 60 | repo: &gix::Repository, |
no test coverage detected
searching dependent graphs…