Class BuiltinDynamicCodecs

java.lang.Object
io.r2dbc.postgresql.codec.BuiltinDynamicCodecs
All Implemented Interfaces:
CodecRegistrar, Extension

public class BuiltinDynamicCodecs extends Object implements CodecRegistrar
CodecRegistrar to register built-in codecs depending on their availability in pg_type.
  • Constructor Details

    • BuiltinDynamicCodecs

      public BuiltinDynamicCodecs()
  • Method Details

    • register

      public Publisher<Void> register(PostgresqlConnection connection, io.netty.buffer.ByteBufAllocator byteBufAllocator, CodecRegistry registry)
      Description copied from interface: CodecRegistrar
      Register Codec into CodecRegistry. Codecs should be registered using a deferred approach upon subscription.
      Specified by:
      register in interface CodecRegistrar
      Parameters:
      connection - the connection to query the connected Postgres runtime instance
      byteBufAllocator - the allocator for buffer allocation
      registry - target codec registry that accepts codec registrations
      Returns:
      a Publisher that activates codec registration upon subscription