Package org.mariadb.r2dbc.message.client
Class ChangeSchemaPacket
- java.lang.Object
-
- org.mariadb.r2dbc.message.client.ChangeSchemaPacket
-
- All Implemented Interfaces:
ClientMessage
public final class ChangeSchemaPacket extends Object implements ClientMessage
see COM_INIT_DB https://mariadb.com/kb/en/com_init_db/ COM_INIT_DB is used to specify the default schema for the connection.
-
-
Constructor Summary
Constructors Constructor Description ChangeSchemaPacket(String schema)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<io.netty.buffer.ByteBuf>encode(Context context, io.netty.buffer.ByteBufAllocator allocator)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.message.ClientMessage
getSequencer, releaseSave, resetSequencer, save
-
-
-
-
Constructor Detail
-
ChangeSchemaPacket
public ChangeSchemaPacket(String schema)
Constructor- Parameters:
schema- new default schema
-
-
Method Detail
-
encode
public reactor.core.publisher.Mono<io.netty.buffer.ByteBuf> encode(Context context, io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
encodein interfaceClientMessage
-
-