Interface PgForeignOptionContainer
- All Superinterfaces:
IOptionContainer,IStatement
- All Known Implementing Classes:
GpExternalTable,PgAbstractForeignTable,PgForeignDataWrapper,PgPartitionForeignTable,PgServer,PgSimpleForeignTable,PgUserMapping
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAppends SQL OPTIONS clause to StringBuilder.default voidcompareOptions(IOptionContainer newContainer, SQLScript script) Compares options between this container and a new container, generating SQL to update differences.Returns the ALTER statement header for this object.Methods inherited from interface org.pgcodekeeper.core.database.api.schema.IOptionContainer
addOption, getOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDatabase, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopy, toObjectReference
-
Field Details
-
ALTER_FOREIGN_OPTION
- See Also:
-
DELIM
- See Also:
-
-
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
Appends SQL OPTIONS clause to StringBuilder.- Parameters:
sb- the StringBuilder to append to
-
compareOptions
Description copied from interface:IOptionContainerCompares options between this container and a new container, generating SQL to update differences.- Specified by:
compareOptionsin interfaceIOptionContainer- Parameters:
newContainer- the new container to compare againstscript- the script to append changes to
-