@FunctionalInterface public interface CodecRegistrar extends Extension
Codecs as extension to built-in codecs.
Implementations may use PostgresqlConnection to query Postgres information schema to discover type details such as extension type OIDs.
Extension implementations must have a default constructor if registered via the ServiceLoader. When registered through
PostgresqlConnectionConfiguration the default constructor is not required to be public.
When registered via the ServiceLoader the default constructor must be public.
Extension| Modifier and Type | Method and Description |
|---|---|
Publisher<Void> |
register(PostgresqlConnection connection,
io.netty.buffer.ByteBufAllocator allocator,
CodecRegistry registry)
Register
Codec into CodecRegistry. |
Publisher<Void> register(PostgresqlConnection connection, io.netty.buffer.ByteBufAllocator allocator, CodecRegistry registry)
Codec into CodecRegistry.
Codecs should be registered using a deferred approach upon subscription.connection - the connection to query the connected Postgres runtime instanceallocator - the allocator for buffer allocationregistry - target codec registry that accepts codec registrationsPublisher that activates codec registration upon subscriptionCopyright © 2024. All rights reserved.