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

Function tables_fields_names

src/gitql/gitql_schema.rs:40–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40pub fn tables_fields_names() -> &'static HashMap<&'static str, Vec<&'static str>> {
41 static HASHMAP: OnceLock<HashMap<&'static str, Vec<&'static str>>> = OnceLock::new();
42 HASHMAP.get_or_init(|| {
43 let mut map = HashMap::new();
44 map.insert("refs", vec!["name", "full_name", "type", "repo"]);
45 map.insert(
46 "commits",
47 vec![
48 "commit_id",
49 "title",
50 "message",
51 "author_name",
52 "author_email",
53 "committer_name",
54 "committer_email",
55 "datetime",
56 "parents_count",
57 "repo",
58 ],
59 );
60 map.insert(
61 "branches",
62 vec![
63 "name",
64 "commit_count",
65 "is_head",
66 "is_remote",
67 "updated",
68 "repo",
69 ],
70 );
71 map.insert(
72 "diffs",
73 vec![
74 "commit_id",
75 "author_name",
76 "author_email",
77 "insertions",
78 "removals",
79 "files_changed",
80 "diff_changes",
81 "datetime",
82 "repo",
83 ],
84 );
85 map.insert(
86 "diffs_changes",
87 vec![
88 "commit_id",
89 "insertions",
90 "removals",
91 "mode",
92 "path",
93 "repo",
94 ],
95 );
96 map.insert("tags", vec!["name", "repo"]);
97 map

Callers 1

create_gitql_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…