Interface SqlConfig<T extends SqlConfig<T>>
- All Known Implementing Classes:
JdbcExecutor,MariaDb,MsSQL,MySQL,OracleDb,PostgreSQL
public interface SqlConfig<T extends SqlConfig<T>>
Defines configuration accessors for SQL execution components.
This interface contains only configuration methods.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable summary of the current SQL configuration.setTemplatesDirectory(String templatePath) Configure directory in resources for tables templateswithAwaitMs(int awaitMs) Configure await in asserts with await
-
Method Details
-
withAwaitMs
Configure await in asserts with await- Parameters:
awaitMs- ms await- Returns:
- this instance for method chaining
- Throws:
IllegalArgumentException- on invalid setup
-
setTemplatesDirectory
Configure directory in resources for tables templates- Parameters:
templatePath- path in resources "my_dir/sub_dir/"- Returns:
- this instance for method chaining
- Throws:
IllegalArgumentException- on invalid setup
-
getConfigSummary
String getConfigSummary()Returns a human-readable summary of the current SQL configuration.The returned string typically includes all configuration values such as query text, parameters, execution options, timeouts, or any other settings managed by the implementing class.
As a side effect, this method logs the generated summary at the INFO level. This can be useful for debugging or tracing configuration usage during test execution.
- Returns:
- a string containing a formatted summary of all configuration values
-