Class Query
java.lang.Object
io.r2dbc.postgresql.message.frontend.Query
- All Implemented Interfaces:
FrontendMessage
The Query message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Query
Create a new message.- Parameters:
query- the query string- Throws:
IllegalArgumentException- ifqueryisnull
-
-
Method Details
-
encode
Description copied from interface:FrontendMessageEncode a message into aByteBuf.- Specified by:
encodein interfaceFrontendMessage- Parameters:
byteBufAllocator- the byteBufAllocator to use to get aByteBufto write into- Returns:
- a
Publisherthat produces theByteBufcontaining the encoded message
-
equals
-
hashCode
-
toString
-