Interface DatabaseCollationVerifier

    • Method Detail

      • verifyCollationOfDatabase

        Optional<DatabaseVerificationResult> verifyCollationOfDatabase​(Connection connection,
                                                                       String script,
                                                                       String[] supportedCollations,
                                                                       String docLink)
                                                                throws SQLException
        Validates the database collation for a given connection.
        Parameters:
        connection - the database connection to validate against.
        script - the script used to check the collation.
        supportedCollations - collations which are supported for the given database.
        docLink - link to the Confluence document.
        Returns:
        the verification result or empty if successful.
        Throws:
        SQLException - - indicates sql error occurs during the verification