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

constructor()
Creates a new resolver that will use the default "@@platform@@" placeholder.
constructor(placeholder: String)
Creates a new resolver that will use the given placeholder.

Functions

Link copied to clipboard
open fun resolveAll(platform: String, values: Array<String>): List<String>
Resolves the placeholders in the given values, replacing them with the given platform.
open fun resolveAll(dataSource: DataSource, values: Array<String>): List<String>
Resolves the placeholders in the given values, replacing them with the platform derived from the DatabaseDriver of the given dataSource.
Link copied to clipboard
Creates a new PlatformPlaceholderDatabaseDriverResolver that will map the given driver to the given platform.