Interface ISchema

All Superinterfaces:
IStatement, IStatementContainer
All Known Implementing Classes:
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
    • getStatementType

      default DbObjType getStatementType()
      Description copied from interface: IStatement
      Gets the type of this database object.
      Specified by:
      getStatementType in interface IStatement
      Returns:
      the database object type
    • getStatementContainer

      IStatementContainer getStatementContainer(String name)
      Gets a statement container by name.
      Parameters:
      name - the name of the container to find
      Returns:
      the statement container with the given name, or null if not found