ldbc.connector.net.packet.request

Members list

Type members

Classlikes

Authentication Method Switch Response Packet which contains response data generated by the authentication method requested in Protocol::OldAuthSwitchRequest: packet.

Authentication Method Switch Response Packet which contains response data generated by the authentication method requested in Protocol::OldAuthSwitchRequest: packet.

This data is opaque to the protocol.

Attributes

Companion
object
Source
AuthSwitchResponsePacket.scala
Supertypes
trait Packet
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
AuthSwitchResponsePacket.scala
Supertypes
class Object
trait Matchable
class Any
Self type

value of each parameter: Binary Protocol Value

value of each parameter: Binary Protocol Value

Value parameters

values

a map of column data type and its value

Attributes

See also
Companion
object
Source
BinaryProtocolValuePacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
BinaryProtocolValuePacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComChangeUserPacket(capabilitiesFlags: Set[CapabilitiesFlags], user: String, database: Option[String], characterSet: Int, pluginName: String, hashedPassword: ByteVector) extends RequestPacket

The COM_CHANGE_USER request packet is used to change the user of the current connection.

The COM_CHANGE_USER request packet is used to change the user of the current connection.

Value parameters

capabilitiesFlags

The capability flags of the client

characterSet

The character set of the client

database

The name of the database

hashedPassword

The hashed password of the user

pluginName

The name of the plugin

user

The username of the user

Attributes

Companion
object
Source
ComChangeUserPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComChangeUserPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComInitDBPacket(schema: String) extends RequestPacket

The COM_INIT_DB request is used to change the default database for the connection. The database name is specified as an argument to the request. The server changes the default database to the one specified and sends a OK_Packet to the client. If the database does not exist, the server sends an ERR_Packet to the client.

The COM_INIT_DB request is used to change the default database for the connection. The database name is specified as an argument to the request. The server changes the default database to the one specified and sends a OK_Packet to the client. If the database does not exist, the server sends an ERR_Packet to the client.

Value parameters

schema

The name of the database to change to.

Attributes

Companion
object
Source
ComInitDBPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComInitDBPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComPingPacket() extends RequestPacket

A request packet to Check if the server is alive.

A request packet to Check if the server is alive.

Attributes

Companion
object
Source
ComPingPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all
object ComPingPacket

Attributes

Companion
class
Source
ComPingPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComQueryPacket(sql: String, capabilityFlags: Set[CapabilitiesFlags], params: ListMap[ColumnDataType, Any]) extends RequestPacket

The COM_QUERY request is used to send the server a text-based query that is executed immediately.

The COM_QUERY request is used to send the server a text-based query that is executed immediately.

Value parameters

capabilityFlags

The capabilities of the client

sql

The SQL query to execute

Attributes

See also
Companion
object
Source
ComQueryPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComQueryPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComQuitPacket() extends RequestPacket

A request packet to close the connection.

A request packet to close the connection.

Attributes

Companion
object
Source
ComQuitPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all
object ComQuitPacket

Attributes

Companion
class
Source
ComQuitPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

A request packet to reset the connection.

A request packet to reset the connection.

Attributes

Companion
object
Source
ComResetConnectionPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComResetConnectionPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComSetOptionPacket(optionOperation: EnumMySQLSetOption) extends RequestPacket

A request packet to set the option of the connection.

A request packet to set the option of the connection.

Value parameters

optionOperation

Enables or disables an option for the connection. option can have one of the following values.

  • EnumMySQLSetOption.MYSQL_OPTION_MULTI_STATEMENTS_ON
  • EnumMySQLSetOption.MYSQL_OPTION_MULTI_STATEMENTS_OFF

Attributes

Companion
object
Source
ComSetOptionPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComSetOptionPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComStatisticsPacket() extends RequestPacket

The COM_STATISTICS request is used to request statistics from the server. Get a human readable string of some internal status vars.

The COM_STATISTICS request is used to request statistics from the server. Get a human readable string of some internal status vars.

The statistics are refreshed at the time of executing this command. If the returned string is of zero length an error message is returned by mysql_stat to the client application instead of the actual empty statistics string.

Attributes

Companion
object
Source
ComStatisticsPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComStatisticsPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComStmtClosePacket(statementId: Long) extends RequestPacket

COM_STMT_CLOSE deallocates a prepared statement.

COM_STMT_CLOSE deallocates a prepared statement.

No response packet is sent back to the client.

Value parameters

statementId

The ID of the prepared statement to be closed.

Attributes

Companion
object
Source
ComStmtClosePacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComStmtClosePacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComStmtExecutePacket(statementId: Long, params: SortedMap[Int, Parameter]) extends RequestPacket

COM_STMT_EXECUTE asks the server to execute a prepared statement as identified by statement_id.

COM_STMT_EXECUTE asks the server to execute a prepared statement as identified by statement_id.

It sends the values for the placeholders of the prepared statement (if it contained any) in Binary Protocol Value form. The type of each parameter is made up of two bytes

Value parameters

params

The parameters to bind to the prepared statement

statementId

The ID of the prepared statement to execute

Attributes

Companion
object
Source
ComStmtExecutePacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComStmtExecutePacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ComStmtPreparePacket(query: String) extends RequestPacket

Attributes

Companion
object
Source
ComStmtPreparePacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ComStmtPreparePacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HandshakeResponse320Packet(capabilitiesFlags: Set[CapabilitiesFlags], user: String, hashedPassword: Array[Byte], pluginName: String, database: Option[String]) extends HandshakeResponsePacket

Old Handshake Response Packet used by old clients or if the server doesn't support CLIENT_PROTOCOL_41 Capabilities Flags flag.

Old Handshake Response Packet used by old clients or if the server doesn't support CLIENT_PROTOCOL_41 Capabilities Flags flag.

Value parameters

capabilitiesFlags

CapabilitiesFlags, only the lower 16 bits. CLIENT_PROTOCOL_41 should never be set.

database

Database used for login

hashedPassword

The password of the client, hashed with the given method.

pluginName

The authentication plugin name.

user

The username of the client.

Attributes

Companion
object
Source
HandshakeResponse320Packet.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
HandshakeResponse320Packet.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HandshakeResponse41Packet(capabilitiesFlags: Set[CapabilitiesFlags], user: String, hashedPassword: Array[Byte], pluginName: String, characterSet: Int, database: Option[String]) extends HandshakeResponsePacket

Handshake Response Packet sent by 4.1+ clients supporting CLIENT_PROTOCOL_41 Capabilities Flags flag, if the server announced it in its Protocol::Handshake. Otherwise (talking to an old server) the Protocol::HandshakeResponse320 packet must be used.

Handshake Response Packet sent by 4.1+ clients supporting CLIENT_PROTOCOL_41 Capabilities Flags flag, if the server announced it in its Protocol::Handshake. Otherwise (talking to an old server) the Protocol::HandshakeResponse320 packet must be used.

Value parameters

capabilitiesFlags

CapabilitiesFlags, CLIENT_PROTOCOL_41 always set.

characterSet

The character set of the client.

database

Database used for login

hashedPassword

The password of the client, hashed with the given method.

pluginName

The authentication plugin name.

user

The username of the client.

Attributes

Companion
object
Source
HandshakeResponse41Packet.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
HandshakeResponse41Packet.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Depending on the servers support for the CLIENT_PROTOCOL_41 capability and the clients understanding of that flag the client has to send either a Protocol::HandshakeResponse320 or Protocol::HandshakeResponse41.

Depending on the servers support for the CLIENT_PROTOCOL_41 capability and the clients understanding of that flag the client has to send either a Protocol::HandshakeResponse320 or Protocol::HandshakeResponse41.

Attributes

Companion
object
Source
HandshakeResponsePacket.scala
Supertypes
trait Packet
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
HandshakeResponsePacket.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class SSLRequestPacket(sequenceId: Byte, capabilityFlags: Set[CapabilitiesFlags]) extends RequestPacket

SSL Connection Request Packet.

SSL Connection Request Packet.

It is like Protocol::HandshakeResponse: but is truncated right before username field. If server supports CLIENT_SSL capability, client can send this packet to request a secure SSL connection. The CLIENT_SSL capability flag must be set inside the SSL Connection Request Packet.

Value parameters

capabilityFlags

The capability flags of the client.

Attributes

Companion
object
Source
SSLRequestPacket.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SSLRequestPacket.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def date: Encoder[LocalDate]

Attributes

Source
package.scala
def dateTime: Encoder[LocalDateTime]

Attributes

Source
package.scala
def time: Encoder[LocalTime]

Attributes

Source
package.scala