Class PostgreSQLConfigCustomizer


  • public final class PostgreSQLConfigCustomizer
    extends Object
    Allows configuring the application specific configs for PostgreSQL database driver (R2DBC driver).
    Since:
    0.7
    Author:
    nedis
    See Also:
    PostgreSQLConfig
    • 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 built
        NullPointerException - if codecRegistrar is null
      • 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 built
        NullPointerException - if connectionDecorator is null