Class PostgreSQLConfigCustomizer
- java.lang.Object
-
- io.rxmicro.data.sql.r2dbc.postgresql.PostgreSQLConfigCustomizer
-
public final class PostgreSQLConfigCustomizer extends Object
Allows configuring the application specific configs for PostgreSQL database driver (R2DBC driver).PostgreSQLConfig
must be used for environment specific configs.PostgreSQLConfigCustomizer
must be used for application specific configs.
- Since:
- 0.7
- Author:
- nedis
- See Also:
PostgreSQLConfig
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
registerPostgreSQLCodecs(io.r2dbc.postgresql.extension.CodecRegistrar... codecRegistrars)
Allows registering custom codecs.static void
setConnectionDecorator(Function<io.r2dbc.spi.Connection,io.r2dbc.spi.Connection> connectionDecorator)
Sets the connection decorator function.
-
-
-
Method Detail
-
registerPostgreSQLCodecs
public static void registerPostgreSQLCodecs(io.r2dbc.postgresql.extension.CodecRegistrar... codecRegistrars)
Allows registering custom codecs.- Parameters:
codecRegistrars
- the custom codecs- Throws:
IllegalStateException
- if connection pool already builtNullPointerException
- ifcodecRegistrar
isnull
-
setConnectionDecorator
public static void setConnectionDecorator(Function<io.r2dbc.spi.Connection,io.r2dbc.spi.Connection> connectionDecorator)
Sets the connection decorator function.This features is useful for testing purposes.
- Parameters:
connectionDecorator
- the connection decorator function- Throws:
IllegalStateException
- if connection pool already builtNullPointerException
- ifconnectionDecorator
isnull
-
-