PlatformPlaceholderDatabaseDriverResolver
Utility class that can resolve placeholder text with the actual DatabaseDriver platform.
By default, the name of the platform is the ID of the driver. This mapping can be customized by withDriverPlatform registering custom DatabaseDriver
to platform mappings.
Author
Phillip Webb
Andy Wilkinson
Since
2.6.0
Constructors
Functions
Link copied to clipboard
Resolves the placeholders in the given
values
, replacing them with the given platform.Resolves the placeholders in the given
values
, replacing them with the platform derived from the DatabaseDriver of the given dataSource
.Link copied to clipboard
open fun withDriverPlatform(driver: DatabaseDriver, platform: String): PlatformPlaceholderDatabaseDriverResolver
Creates a new PlatformPlaceholderDatabaseDriverResolver that will map the given
driver
to the given platform
.