Interface ISchema

All Superinterfaces:
IStatement, IStatementContainer
All Known Implementing Classes:
AbstractSchema, ChSchema, MsSchema, PgSchema

public interface ISchema extends IStatementContainer
Interface representing a database schema containing tables, views, functions, and other objects. Extends statement container functionality with schema-specific operations.
  • Method Details

    • getRelations

      Stream<IRelation> getRelations()
      Gets all relations (tables, views, sequences) in this schema.
      Returns:
      a stream of relations
    • getRelation

      IRelation getRelation(String name)
      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

      IFunction getFunction(String signature)
      Gets a function by its signature.
      Parameters:
      signature - the function signature
      Returns:
      the function with the given signature, or null if not found