OKPacket

ldbc.connector.net.packet.response.OKPacket
See theOKPacket companion object
case class OKPacket(status: Int, affectedRows: Int, lastInsertId: Int, statusFlags: Seq[ServerStatusFlags], warnings: Option[Int], info: Option[String], sessionStateInfo: Option[String], msg: Option[String]) extends GenericResponsePackets

An OK packet is sent from the server to the client to signal successful completion of a command.

if CLIENT_PROTOCOL_41 is set, the packet contains a warning count.

Value parameters

affectedRows

Type: int Name: affected_rows Description: affected rows

info

Type: string Name: info Description: human readable status information

lastInsertId

Type: int Name: last_insert_id Description: last insert-id

msg

Type: string Name: info Description: human readable status information

sessionStateInfo

Type: string Name: session state info Description: Session State Information

status

Type: int<1> Name: header Description: 0x00 or 0xFE the OK packet header

statusFlags

if capabilities & CLIENT_PROTOCOL_41 Type: int<2> Name: status_flags Description: SERVER_STATUS_flags_enum

warnings

if capabilities & CLIENT_PROTOCOL_41 Type: int<2> Name: warnings Description: number of warnings

Attributes

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

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
OKPacket.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product