Interface PgForeignOptionContainer

All Superinterfaces:
IOptionContainer, IStatement
All Known Implementing Classes:
GpExternalTable, PgAbstractForeignTable, PgForeignDataWrapper, PgPartitionForeignTable, PgServer, PgSimpleForeignTable, PgUserMapping

public interface PgForeignOptionContainer extends IOptionContainer
Interface for PostgreSQL objects that support foreign table options. Provides common functionality for handling OPTIONS clause used in foreign tables, foreign data wrappers, and servers.
  • Field Details

  • Method Details

    • getAlterHeader

      String getAlterHeader()
      Returns the ALTER statement header for this object.
      Returns:
      ALTER statement prefix (e.g., "ALTER FOREIGN TABLE table_name")
    • appendOptions

      default void appendOptions(StringBuilder sb)
      Appends SQL OPTIONS clause to StringBuilder.
      Parameters:
      sb - the StringBuilder to append to
    • compareOptions

      default void compareOptions(IOptionContainer newContainer, SQLScript script)
      Description copied from interface: IOptionContainer
      Compares options between this container and a new container, generating SQL to update differences.
      Specified by:
      compareOptions in interface IOptionContainer
      Parameters:
      newContainer - the new container to compare against
      script - the script to append changes to