Class DepcyFinder
java.lang.Object
org.pgcodekeeper.core.model.graph.DepcyFinder
Database dependency finder for analyzing object dependencies.
Provides methods to find dependencies by patterns or specific statements
with support for filtering by object types and depth control.
-
Method Summary
Modifier and TypeMethodDescriptionbyPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, AbstractDatabase db, Collection<String> names) Finds dependencies by matching object name patterns.byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, PgStatement st) Finds dependencies for a specific database statement.
-
Method Details
-
byPatterns
public static List<String> byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, AbstractDatabase db, Collection<String> names) Finds dependencies by matching object name patterns.- Parameters:
depth- maximum depth to searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byisInvertFilter- whether to invert the filterdb- the database to search innames- collection of name patterns to match- Returns:
- list of formatted dependency strings
-
byStatement
public static List<String> byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, PgStatement st) Finds dependencies for a specific database statement.- Parameters:
depth- maximum depth to searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byst- the statement to find dependencies for- Returns:
- list of formatted dependency strings
-