validateDatabase

abstract fun validateDatabase(): DatabaseValidationException?

Validate the database manually.

User can either automatically validate the database or manually validate it.

  • Automatically: Specify the databaseValidationMode as DatabaseValidationMode.ERROR or DatabaseValidationMode.WARNING when building the KSqlClient object, so there is NO need to call this function

  • Manually: Specify the databaseValidationMode as DatabaseValidationMode.NONE and call this method after obtaining the KSqlClient object

Note: If there are any database validation errors, the relevant exceptions will be returned as the result of this method instead of being thrown directly.

Return

The validation error or null