public final class TextQueryMessage extends Object implements ClientMessage
| Constructor and Description |
|---|
TextQueryMessage(String sql)
Creates a
TextQueryMessage without parameter. |
| Modifier and Type | Method and Description |
|---|---|
Mono<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator allocator,
ConnectionContext context)
Encode a message into
ByteBufs. |
String |
toString() |
public TextQueryMessage(String sql)
TextQueryMessage without parameter.sql - plain text SQL, should not contain any parameter placeholder.IllegalArgumentException - if sql is null.public Mono<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator allocator, ConnectionContext context)
ClientMessageByteBufs.encode in interface ClientMessageallocator - the ByteBufAllocator that use to get ByteBuf to write into.context - current MySQL connection context.Flux that's produces the encoded ByteBufs.Copyright © 2018–2023 asyncer.io. All rights reserved.