Skip to main content

gobby_code/graph/
code_graph.rs

1mod connection;
2mod lifecycle;
3mod payload;
4mod read;
5#[cfg(test)]
6mod tests;
7mod write;
8
9pub use connection::require_graph_reads;
10pub use lifecycle::{
11    GraphLifecycleAction, GraphLifecycleOutput, GraphLifecycleRequest, GraphReadError,
12    GraphReadRequest, require_daemon_url, run_lifecycle_action,
13};
14pub use payload::{
15    GraphBlastRadiusTarget, GraphLink, GraphNode, GraphPayload, extracted_code_edge_metadata,
16};
17pub use read::{
18    DEFAULT_SYMBOL_PATH_MAX_DEPTH, MAX_SYMBOL_PATH_DEPTH, ResolvedExternalCallTarget, blast_radius,
19    blast_radius_graph, count_callers, count_usages, file_graph, find_callee_ids_batch,
20    find_callees_batch, find_caller_ids, find_caller_ids_batch, find_callers, find_callers_batch,
21    find_usage_ids, find_usages, get_imports, project_overview_graph, resolve_external_call_target,
22    shortest_symbol_path, symbol_neighbors,
23};
24pub use write::{
25    CodeGraph, GraphOrphanCleanup, call_target_id, cleanup_deleted_files, cleanup_orphans,
26    clear_all_code_index, clear_project, delete_file_graph, delete_file_projection,
27    sync_file_graph, with_code_graph,
28};
29
30pub(crate) use lifecycle::extract_summary_text;
31#[cfg(test)]
32pub(crate) use read::{
33    get_imports_query, resolve_external_call_target_query, symbol_callee_edges_query,
34    symbol_path_steps_query,
35};
36
37#[cfg(test)]
38pub(crate) use lifecycle::{
39    build_lifecycle_url, compact_detail, format_http_error, parse_success_payload,
40};
41#[cfg(test)]
42use payload::{row_string_owned, row_to_projection_metadata, row_usize};
43#[cfg(test)]
44use read::{blast_radius_file_import_query, dedupe_limited_blast_rows, file_calls_query};
45#[cfg(test)]
46use write::{
47    cleanup_orphans_queries, clear_all_code_index_query, clear_project_query,
48    count_file_projection_nodes_query, delete_file_graph_queries, delete_file_node_query,
49    import_graph_items, partition_call_graph_items, project_file_path_queries,
50};