Package org.pgcodekeeper.core.schema
Interface ISchema
- All Superinterfaces:
IStatement,IStatementContainer
- All Known Implementing Classes:
AbstractSchema,ChSchema,MsSchema,PgSchema
Interface representing a database schema containing tables, views, functions, and other objects.
Extends statement container functionality with schema-specific operations.
-
Method Summary
Modifier and TypeMethodDescriptiongetFunction(String signature) Gets a function by its signature.Gets all functions in this schema.getRelation(String name) Gets a relation by name.Gets all relations (tables, views, sequences) in this schema.Methods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getDatabase, getName, getParent, getQualifiedName, getStatementTypeMethods inherited from interface org.pgcodekeeper.core.schema.IStatementContainer
addChild, getChild
-
Method Details
-
getRelations
Gets all relations (tables, views, sequences) in this schema.- Returns:
- a stream of relations
-
getRelation
Gets a relation by name.- Parameters:
name- the relation name- Returns:
- the relation with the given name, or null if not found
-
getFunctions
Collection<IFunction> getFunctions()Gets all functions in this schema.- Returns:
- a collection of functions
-
getFunction
Gets a function by its signature.- Parameters:
signature- the function signature- Returns:
- the function with the given signature, or null if not found
-