MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / select_gql_objects

Function select_gql_objects

src/gitql/gitql_data_provider.rs:43–57  ·  view source on GitHub ↗
(
    repo: &gix::Repository,
    table: String,
    selected_columns: &[String],
)

Source from the content-addressed store, hash-verified

41}
42
43fn 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
59fn select_references(
60 repo: &gix::Repository,

Callers 1

provideMethod · 0.85

Calls 6

select_referencesFunction · 0.85
select_commitsFunction · 0.85
select_branchesFunction · 0.85
select_diffsFunction · 0.85
select_diffs_changesFunction · 0.85
select_tagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…