Class BuiltinDynamicCodecs
java.lang.Object
io.r2dbc.postgresql.codec.BuiltinDynamicCodecs
- All Implemented Interfaces:
CodecRegistrar, Extension
CodecRegistrar to register built-in codecs depending on their availability in pg_type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionregister(PostgresqlConnection connection, io.netty.buffer.ByteBufAllocator byteBufAllocator, CodecRegistry registry) RegisterCodecintoCodecRegistry.
-
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:CodecRegistrarRegisterCodecintoCodecRegistry. Codecs should be registered using a deferred approach uponsubscription.- Specified by:
registerin interfaceCodecRegistrar- Parameters:
connection- the connection to query the connected Postgres runtime instancebyteBufAllocator- the allocator for buffer allocationregistry- target codec registry that accepts codec registrations- Returns:
- a
Publisherthat activates codec registration upon subscription
-