Interface DialectResolver.R2dbcDialectProvider
- Enclosing class:
- DialectResolver
public static interface DialectResolver.R2dbcDialectProvider
SPI to extend Spring's default R2DBC Dialect discovery mechanism. Implementations of this interface are discovered
through Spring's
SpringFactoriesLoader
mechanism.- Author:
- Mark Paluch
- See Also:
-
SpringFactoriesLoader
-
Method Summary
Modifier and TypeMethodDescriptiongetDialect
(io.r2dbc.spi.ConnectionFactory connectionFactory) Returns aR2dbcDialect
for aConnectionFactory
.
-
Method Details
-
getDialect
Returns aR2dbcDialect
for aConnectionFactory
.- Parameters:
connectionFactory
- the connection factory to be used with theR2dbcDialect
.- Returns:
Optional
containing theR2dbcDialect
if theDialectResolver.R2dbcDialectProvider
can provide a dialect object, otherwiseOptional.empty()
.
-