Interface IRelation
- All Superinterfaces:
ISearchPath,IStatement
- All Known Subinterfaces:
IForeignTable,IPartitionTable,ISequence,ITable,IView
- All Known Implementing Classes:
ChDictionary,ChTable,ChTableLog,ChView,GpExternalTable,GpPartitionTable,MetaRelation,MsAbstractStatementContainer,MsSequence,MsTable,MsView,PgAbstractForeignTable,PgAbstractRegularTable,PgAbstractStatementContainer,PgAbstractTable,PgAbstractView,PgMaterializedView,PgPartitionForeignTable,PgPartitionTable,PgSequence,PgSimpleForeignTable,PgSimpleTable,PgTypedTable,PgView
Interface for database relations (tables, views, sequences).
Represents objects that can be used in queries and have column information.
-
Method Summary
Modifier and TypeMethodDescriptionGets the columns of this relation as name-type pairs.Methods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, 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
-
Method Details
-
getRelationColumns
Gets the columns of this relation as name-type pairs.- Returns:
- a stream of column name and type pairs
-