Skip to content

Graph model

Node types, edge kinds, node keys, and the inferred/system markers used across CLI output and exports.

Node types

Every node carries a type tag in CLI output and all export formats. A * suffix is a qualifier whose meaning depends on the type: for table* / view* / seq* it means inferred (referenced by DML, no DDL definition found); for proc* / func* it means the procedure/function body could not be fully parsed.

TagMeaningNotes
proc / proc*Stored procedure* = incomplete body parse
func / func*Function* = incomplete body parse
table / table*Table* = referenced in DML, no DDL
view / view*View* = referenced in DML, no DDL
seq / seq*Sequence* = referenced, no DDL
pkgPackage
triggerTrigger
typeCustom type
indexIndex
mviewMaterialized view
synonymSynonym
eventEvent
builtinBuilt-in SQL functionSubtypes in JSON: builtin:func, builtin:op, builtin:hint, builtin:special
unresUnresolved referenceDynamic or unmatched call target
mapperMyBatis/iBatis mapped statement
methodJava method
classJava class
sqlSQL embedded in JavaFrom annotations or JDBC calls
jspJSP pageRequires the jsp feature
jspsqlSQL embedded in JSPRequires the jsp feature
customImported custom nodeCreated via CGEF import

Tables and views that live in known system schemas (pg_catalog, sys, dbe_*, …) or are well-known system names (dual, sys_dummy) are flagged system: true in JSON output; codeweb nodes --system filters for them.

Node keys

Nodes are identified by a NodeKey string that combines name, type, and location of origin:

  • SQL objects: type:schema.name (for example table:public.orders); routines include the package when defined in one.
  • Java methods: the fully qualified name including the class (com.example.OrderService.createOrder).
  • Mappers: namespace.id (com.example.OrderMapper.insertOrder).

Substring search in trace, detail, inspect, and impact matches against these keys. Use --exact for a case-insensitive exact match, --regex for regular expressions, and --fail-on-multiple to refuse ambiguous matches.

Edge kinds

EdgeConnectsMeaning
DirectCallprocedure → procedureStatic CALL / PERFORM
DynamicCallprocedure → unresolvedEXECUTE IMMEDIATE with a non-literal target
CallsProceduremapper / Java / JSP SQL → procedureSQL body calls a stored procedure
InvokesMapperJava method → mapped statementMapper id call or interface binding
CallsJavaSQL / procedure → Java methodOutbound call into Java
UsesBuiltinFunctionroutine → built-inCOUNT, SUBSTR, operators, hints
ContainsMethodclass → methodJava class structure
ContainsSqlJava method → JavaSqlMethod owns embedded SQL
Extends / Implementsclass → classJava inheritance
TableAccessroutine / statement → tableRead/write with access modes and write kinds
DependsOnnode → nodeStructural dependency (views, synonyms)
ContainsRoutinepackage → routinePackage body membership
TriggersRoutinetrigger → routineTrigger fires routine
ReferencesType / UsesSequence / IndexesTable / AliasesObjectroutine → objectDDL references
AnchorsOnroutine → table/column%TYPE / %ROWTYPE schema anchor; excluded from lineage, conflicts, and --summarize-tables
CustomEdgeany → anyImported via CGEF with a custom type name

For traversal, edges fold into five categories: call, composition, dataflow, reference, inheritance. These are the values accepted by codeweb impact --edge-types and by the edge_categories field of the query engine.