Interface DatabaseCheckOnHost<T extends DbObject>

Type Parameters:
T - represents an object in a database associated with a table
All Superinterfaces:
DiagnosticAware, HostAware, RawTypeAware<T>
All Known Implementing Classes:
ColumnsWithJsonTypeCheckOnHost, ColumnsWithoutDescriptionCheckOnHost, ColumnsWithSerialTypesCheckOnHost, DuplicatedIndexesCheckOnHost, ForeignKeysNotCoveredWithIndexCheckOnHost, FunctionsWithoutDescriptionCheckOnHost, IndexesWithBloatCheckOnHost, IndexesWithNullValuesCheckOnHost, IntersectedIndexesCheckOnHost, InvalidIndexesCheckOnHost, TablesWithBloatCheckOnHost, TablesWithMissingIndexesCheckOnHost, TablesWithoutDescriptionCheckOnHost, TablesWithoutPrimaryKeyCheckOnHost, UnusedIndexesCheckOnHost

public interface DatabaseCheckOnHost<T extends DbObject> extends DiagnosticAware, RawTypeAware<T>, HostAware
A check on database structure on a specific host.
Since:
0.6.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<T>
    Executes the check in the public schema.
    check(PgContext pgContext)
    Executes the check in the specified schema.

    Methods inherited from interface io.github.mfvanek.pg.common.maintenance.DiagnosticAware

    getDiagnostic

    Methods inherited from interface io.github.mfvanek.pg.connection.HostAware

    getHost

    Methods inherited from interface io.github.mfvanek.pg.common.maintenance.RawTypeAware

    getType
  • Method Details

    • check

      @Nonnull List<T> check(@Nonnull PgContext pgContext)
      Executes the check in the specified schema.
      Parameters:
      pgContext - check's context with the specified schema
      Returns:
      list of deviations from the specified rule
      See Also:
    • check

      @Nonnull default List<T> check()
      Executes the check in the public schema.
      Returns:
      list of deviations from the specified rule
      See Also: