DatabaseClientConfig

Configuration interface for DatabaseClient behavior.

This interface defines settings for SQL transformation, batch validation, logging, and transaction handling. Use the database-specific factory functions (e.g., PgDatabaseClientConfig(), MysqlDatabaseClientConfig()) to create instances with the correct SQL transformation for each database type.

See also

Properties

Link copied to clipboard

Whether to always run some steps that possibly require Exposed transactions in Exposed transactions.

Link copied to clipboard
abstract val logSql: Boolean

Whether to log generated SQL statements. Useful for debugging.

The provider for Exposed transactions used for SQL statement preparation.

Link copied to clipboard
abstract val validateBatch: Boolean

Whether to validate whether the batch statements have the same generated prepared SQL. It's recommended to keep this enabled for tests but disabled for production. Actual performance implications as tested are insignificant.

Functions

Link copied to clipboard
abstract fun transformPreparedSql(exposedPreparedSql: String): String

Transform Exposed's prepared SQL to Vert.x SQL Client's prepared SQL.