Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nayshins/ummon
/ functions
Functions
347 in github.com/Nayshins/ummon
⨍
Functions
347
◇
Types & classes
74
↓ 269 callers
Method
clone
(&self)
src/db.rs:38
↓ 44 callers
Method
as_str
(&self)
src/graph/entity.rs:57
↓ 39 callers
Method
add_entity
Add a general entity to the graph
src/graph/knowledge_graph.rs:209
↓ 29 callers
Function
traverse_node
Recursively traverses a node and its children, applying a callback function to each node. # Arguments `node` - The tree-sitter Node to traverse `f` -
src/parser/language_support/mod.rs:32
↓ 28 callers
Method
create_relationship
Create and add a relationship between entities Tries to locate both source and target entities in the graph. If the source entity doesn't exist, the
src/graph/knowledge_graph.rs:369
↓ 22 callers
Method
id
(&self)
src/graph/entity.rs:175
↓ 18 callers
Method
path
Helper methods for MCP server
src/graph/entity.rs:120
↓ 13 callers
Method
get_connection
Get a connection from the pool
src/db.rs:70
↓ 12 callers
Method
execute
Execute a parsed query and return matching entities
src/query/db_executor.rs:30
↓ 11 callers
Method
as_entity
(&self)
src/graph/knowledge_graph.rs:37
↓ 11 callers
Method
file_path
(&self)
src/graph/entity.rs:191
↓ 11 callers
Method
get_entity
Get an entity by its ID
src/graph/knowledge_graph.rs:331
↓ 11 callers
Function
node_to_location
Converts a tree-sitter Node to a Location struct. # Arguments `node` - The tree-sitter Node to convert # Returns `Location` - A Location struct cont
src/parser/language_support/mod.rs:55
↓ 11 callers
Function
parse_query
Parse a query string into a structured query object
src/query/parser.rs:131
↓ 10 callers
Method
parse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/rust.rs:653
↓ 9 callers
Method
name
(&self)
src/graph/entity.rs:179
↓ 8 callers
Method
metadata
(&self)
src/graph/entity.rs:195
↓ 8 callers
Method
parse_functions
Parses Rust functions from source code. Extracts top-level functions and methods, identifying their structure, parameters, and relationships to other
src/parser/language_support/rust.rs:756
↓ 8 callers
Method
parse_modules
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:652
↓ 8 callers
Method
save_entity
(&self, entity: &dyn Entity)
src/db.rs:143
↓ 7 callers
Method
extract_location
(&self, node: Node)
src/parser/language_support/java.rs:112
↓ 7 callers
Method
find_paths
Find paths between entities using an iterative approach to avoid stack overflow
src/graph/knowledge_graph.rs:434
↓ 7 callers
Method
get_outgoing_relationships
Get relationships by source entity
src/graph/knowledge_graph.rs:408
↓ 7 callers
Method
query_entities_by_type
Query entities based on entity type and optional condition with parameters
src/db.rs:752
↓ 6 callers
Method
as_any
(&self)
src/graph/entity.rs:203
↓ 6 callers
Method
entity_type
(&self)
src/graph/entity.rs:183
↓ 6 callers
Method
get_all_entities
Get all entities
src/graph/knowledge_graph.rs:344
↓ 6 callers
Function
get_database
Get a database instance - this is a convenience method that just calls Database::new
src/db.rs:18
↓ 6 callers
Method
get_entities_by_type
Get entities by type
src/graph/knowledge_graph.rs:348
↓ 6 callers
Method
get_outgoing_relationships
Get a relationship by ID Get all outgoing relationships from an entity
src/graph/relationship.rs:160
↓ 6 callers
Function
is_supported_source_file
Checks if the given path is a supported source file based on its extension.
src/parser/language_support/mod.rs:71
↓ 6 callers
Method
parse_calls
Parses function and method calls from Rust source code # Arguments `content` - The Rust source code as a string # Returns `Result<Vec<CallReference>
src/parser/language_support/rust.rs:840
↓ 6 callers
Method
parse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:548
↓ 6 callers
Method
parse_types
(&mut self, content: &str, file_path: &str)
src/parser/language_support/python.rs:566
↓ 5 callers
Method
add_relationship
Add a relationship to the store
src/graph/relationship.rs:128
↓ 5 callers
Function
create_test_kg
Helper function to create a test knowledge graph
src/query/formatter.rs:343
↓ 5 callers
Method
format
Format query results (reference entities)
src/query/formatter.rs:50
↓ 5 callers
Method
format_boxed_entities
Format query results (boxed entities)
src/query/formatter.rs:66
↓ 5 callers
Function
get_parser_for_file
Get the appropriate parser for a given file Gets a parser that can handle the given file type # Arguments `file_path` - Path to the file that needs p
src/parser/language_support/mod.rs:430
↓ 5 callers
Method
parse_functions
Parses JavaScript functions and methods from the source code. Extracts both standalone functions and class methods, transforming them into structured
src/parser/language_support/javascript.rs:288
↓ 4 callers
Function
chunk_file
(content: &str, chunk_size: usize, overlap: usize)
src/prompt/domain_extraction.rs:82
↓ 4 callers
Method
condition_to_sql
Convert a condition to SQL where clause with parameterized values
src/query/db_executor.rs:149
↓ 4 callers
Method
extract_documentation
(&self, content: &str, location: &Location)
src/parser/language_support/java.rs:790
↓ 4 callers
Method
extract_query_and_confidence
Extract the translated query and confidence from the LLM response
src/query/nl_translator.rs:103
↓ 4 callers
Method
get_related_entities
Get related entities (outgoing)
src/graph/knowledge_graph.rs:414
↓ 4 callers
Method
load_entities
Load all entities from the database
src/db.rs:531
↓ 4 callers
Method
load_relationships
Load all relationships from the database
src/db.rs:570
↓ 4 callers
Method
load_relationships_with_query
Generic method to load relationships with a custom query and parameters
src/db.rs:503
↓ 4 callers
Method
parse_functions
Parses Python functions from source code. Extracts both top-level functions and methods in classes, identifying their structure, parameters, and rela
src/parser/language_support/python.rs:637
↓ 4 callers
Method
parse_types
Parses JavaScript/TypeScript classes and types # Arguments `content` - The JavaScript/TypeScript source code as a string `file_path` - Path to the so
src/parser/language_support/javascript.rs:408
↓ 4 callers
Function
query_llm
Async function calling the selected LLM API with error handling and retries
src/prompt/llm_integration.rs:96
↓ 3 callers
Method
add_boxed_entity
Add a boxed entity directly to the graph
src/graph/knowledge_graph.rs:97
↓ 3 callers
Function
build_domain_extraction_prompt
Build a prompt for domain entity extraction
src/prompt/domain_extraction.rs:260
↓ 3 callers
Function
create_test_boxed_entities
Helper function to create test boxed entities
src/query/formatter.rs:407
↓ 3 callers
Function
create_test_db
Helper function to create a test database with sample data
src/query/db_executor.rs:264
↓ 3 callers
Method
extract_function_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/python.rs:22
↓ 3 callers
Function
extract_keywords_fallback
Fallback method to extract keywords from LLM response when JSON parsing fails
src/agent/relevance_agent.rs:82
↓ 3 callers
Method
extract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/javascript.rs:47
↓ 3 callers
Method
extract_type_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/rust.rs:467
↓ 3 callers
Method
extract_visibility
(&self, node: Node)
src/parser/language_support/rust.rs:47
↓ 3 callers
Method
extract_visibility
(&self, node: Node, content: &str)
src/parser/language_support/java.rs:91
↓ 3 callers
Method
getGreeting
Returns a greeting message @return The greeting message
test/java/Test.java:27
↓ 3 callers
Function
get_llm_config
Get LLM configuration based on CLI arguments and environment variables
src/prompt/llm_integration.rs:57
↓ 3 callers
Function
get_request_headers
(config: &LlmConfig)
src/prompt/llm_integration.rs:260
↓ 3 callers
Method
load_entity
Load a single entity by ID
src/db.rs:541
↓ 3 callers
Method
parse_calls
Parses function calls from JavaScript/TypeScript source code # Arguments `content` - The JavaScript/TypeScript source code as a string `file_path` -
src/parser/language_support/javascript.rs:342
↓ 3 callers
Function
parse_entity_type
(pair: Pair<Rule>)
src/query/parser.rs:240
↓ 3 callers
Method
parse_functions
Parses Java methods and constructors from source code. Extracts methods and constructors from classes and interfaces, identifying their structure, pa
src/parser/language_support/java.rs:503
↓ 3 callers
Function
prepare_request_body
(prompt: &str, config: &LlmConfig)
src/prompt/llm_integration.rs:146
↓ 3 callers
Function
run
Main entry point for the indexing command
src/commands/index.rs:21
↓ 3 callers
Method
save_relationship
(&self, relationship: &Relationship)
src/db.rs:214
↓ 2 callers
Method
add_relationship
Add a relationship between entities Stores the relationship in the relationship store. The relationship will be automatically included in relationship
src/graph/knowledge_graph.rs:359
↓ 2 callers
Function
aggregate_and_rank_files
Aggregate entity scores into file-level scores
src/agent/relevance_agent.rs:269
↓ 2 callers
Method
build_translation_prompt
Build a prompt for the LLM to translate a natural language query
src/query/nl_translator.rs:33
↓ 2 callers
Method
create_specific_entity
Helper method to create a specific entity type from a BaseEntity and data_json
src/db.rs:301
↓ 2 callers
Function
deduplicate_entities
(entities: Vec<DomainEntity>)
src/prompt/domain_extraction.rs:104
↓ 2 callers
Method
escape_csv_value
Escape a CSV value
src/query/formatter.rs:326
↓ 2 callers
Method
extract_function_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/rust.rs:118
↓ 2 callers
Method
extract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/rust.rs:62
↓ 2 callers
Method
extract_parameters
(&self, node: Node, content: &str)
src/parser/language_support/java.rs:206
↓ 2 callers
Method
extract_type_details
( &self, node: Node, content: &str, file_path: &str, )
src/parser/language_support/python.rs:493
↓ 2 callers
Method
find_nested_functions
( &self, node: Node, content: &str, file_path: &str, parent_entity_nam
src/parser/language_support/python.rs:448
↓ 2 callers
Method
find_nested_types
(&self, node: Node, content: &str, file_path: &str)
src/parser/language_support/rust.rs:415
↓ 2 callers
Method
get_domain_concepts
Get domain concepts
src/graph/knowledge_graph.rs:492
↓ 2 callers
Method
infer_domain_concepts
Infers domain concepts from code # Arguments `content` - The source code as a string `file_path` - Path to the source file (for error reporting and c
src/parser/language_support/mod.rs:320
↓ 2 callers
Method
load_entities_with_query
Generic method to load entities with a custom query and parameters
src/db.rs:471
↓ 2 callers
Method
location
(&self)
src/graph/entity.rs:187
↓ 2 callers
Method
parse_calls
(&mut self, content: &str, file_path: &str)
src/parser/language_support/java.rs:587
↓ 2 callers
Method
parse_calls
(&mut self, content: &str, file_path: &str)
src/parser/language_support/python.rs:731
↓ 2 callers
Function
parse_condition
(pair: Pair<Rule>)
src/query/parser.rs:282
↓ 2 callers
Function
process_llm_prompt
(prompt: &str, config: &LlmConfig)
src/prompt/domain_extraction.rs:116
↓ 2 callers
Function
process_query_with_db
Process a query directly using the database without loading everything into memory
src/query/mod.rs:15
↓ 2 callers
Method
row_to_base_entity
Helper method to parse a database row into a BaseEntity
src/db.rs:268
↓ 2 callers
Method
save_all_in_transaction
Save multiple entities and relationships in a single transaction
src/db.rs:898
↓ 2 callers
Method
serialize_data
(&self)
src/graph/entity.rs:269
↓ 2 callers
Method
translate
Translate a natural language query to Ummon query language
src/query/nl_translator.rs:21
↓ 2 callers
Method
validate_attribute_name
Validate an attribute name against the allowed column whitelist
src/query/db_executor.rs:243
↓ 1 callers
Method
addItem
Add an item to the collection @param item The item to add @return true if added successfully @throws IllegalStateException if collection is full
test/java/ComplexExample.java:37
↓ 1 callers
Function
build_context
(db: &Database, instruction: &str)
src/prompt/context_builder.rs:5
↓ 1 callers
Method
calculateAverage
(List<U> numbers)
test/java/ComplexExample.java:114
next →
1–100 of 347, ranked by callers