Protocol is a protocol to communicate with MySQL server. It provides a way to authenticate, reset sequence id, and close the connection.
Type parameters
- F
-
the effect type
Attributes
- Companion
- object
- Source
- Protocol.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Class that holds MySQL host information.
Class that holds MySQL host information.
Attributes
- Returns
-
the host information
- Source
- Protocol.scala
Returns the initial packet.
Reads until EOF is reached.
Reads until EOF is reached.
Type parameters
- P
-
the type of the response packet
Value parameters
- decoder
-
the decoder to decode the response packet
Attributes
- Returns
-
a vector of the response packets
- Source
- Protocol.scala
Receive the next ResponsePacket
, or raise an exception if EOF is reached before a complete message arrives.
Receive the next ResponsePacket
, or raise an exception if EOF is reached before a complete message arrives.
Attributes
- Source
- Protocol.scala
Repeats the process times
times.
Repeats the process times
times.
Type parameters
- P
-
the type of the response packet
Value parameters
- decoder
-
the decoder to decode the response packet
- times
-
the number of times to repeat the process
Attributes
- Returns
-
a vector of the response packets
- Source
- Protocol.scala
Resets the connection.
Resets the sequence id.
Send the specified request packet.
Returns the server variables.
Controls whether or not multiple SQL statements are allowed to be executed at once.
Controls whether or not multiple SQL statements are allowed to be executed at once.
NOTE: It can only be used for batch processing with Insert, Update, and Delete statements.
Value parameters
- optionOperation
-
EnumMySQLSetOption.MYSQL_OPTION_MULTI_STATEMENTS_ON or EnumMySQLSetOption.MYSQL_OPTION_MULTI_STATEMENTS_OFF
Attributes
- Source
- Protocol.scala
Concrete methods
Disables multiple SQL statements to be executed at once.
Disables multiple SQL statements to be executed at once.
NOTE: It can only be used for batch processing with Insert, Update, and Delete statements.
Attributes
- Source
- Protocol.scala
Enables multiple SQL statements to be executed at once.
Enables multiple SQL statements to be executed at once.
NOTE: It can only be used for batch processing with Insert, Update, and Delete statements.
Attributes
- Source
- Protocol.scala
Inherited and Abstract methods
Change the user.
Change the user.
Value parameters
- password
-
Password
- user
-
Username
Attributes
- Inherited from:
- Authentication
- Source
- Authentication.scala
Initialize the database
Initialize the database
Value parameters
- schema
-
the name of a schema in which to work
Attributes
- Inherited from:
- UtilityCommands
- Source
- UtilityCommands.scala
Check if the server is alive.
Check if the server is alive.
Attributes
- Inherited from:
- UtilityCommands
- Source
- UtilityCommands.scala
Quit the connection
Reset the connection
Set an option
Set an option
Value parameters
- optionOperation
-
the option operation
Attributes
- Inherited from:
- UtilityCommands
- Source
- UtilityCommands.scala
Get the statistics of the connection
Get the statistics of the connection
Attributes
- Inherited from:
- UtilityCommands
- Source
- UtilityCommands.scala
Start the authentication process.
Start the authentication process.
Value parameters
- password
-
Password
- username
-
Username
Attributes
- Inherited from:
- Authentication
- Source
- Authentication.scala