DatabaseConfig
data class DatabaseConfig(val dbUrl: String, val dbUsername: String, val dbPassword: String, val dbSchemas: List<String>, val setSearchPath: Boolean, val packagesToScan: List<String>, val dynamicDtoStrategy: DynamicDtoSerializationStrategy = DynamicDtoSerializationStrategy.AUTOMATIC_WHEN_UNAMBIGUOUS, val flywayBaselineVersion: String? = null, val disableFlyway: Boolean = false, val disableCoreTypeInitialization: Boolean = false)
Immutable configuration for PostgreSQL database connection.
Stores connection parameters and configuration for system components.
Constructors
Link copied to clipboard
constructor(dbUrl: String, dbUsername: String, dbPassword: String, dbSchemas: List<String>, setSearchPath: Boolean, packagesToScan: List<String>, dynamicDtoStrategy: DynamicDtoSerializationStrategy = DynamicDtoSerializationStrategy.AUTOMATIC_WHEN_UNAMBIGUOUS, flywayBaselineVersion: String? = null, disableFlyway: Boolean = false, disableCoreTypeInitialization: Boolean = false)
Properties
Link copied to clipboard
Database user password.
Link copied to clipboard
Database user name.
Link copied to clipboard
Disable automatic creation of framework types (e.g., dynamic_dto). Use when the application lacks DDL privileges and schema is managed externally.
Link copied to clipboard
Disable automatic Flyway migrations.
Link copied to clipboard
Strategy for serializing classes as DynamicDto.
Link copied to clipboard
If not null, indicates which version Flyway should treat the existing schema as.
Link copied to clipboard
List of packages to scan by ClassGraph for type annotations.
Link copied to clipboard
Whether HikariCP should set search_path on connection initialization to all schemas.