MySQLProtocol

ldbc.connector.net.MySQLProtocol
See theMySQLProtocol companion object
trait MySQLProtocol[F[_]]

MySQLProtocol 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
MySQLProtocol.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def authenticate(user: String, password: String, database: Option[String], useSSL: Boolean, allowPublicKeyRetrieval: Boolean, capabilitiesFlags: List[CapabilitiesFlags]): F[Unit]

Authenticates the user with the given password.

Authenticates the user with the given password.

Value parameters

allowPublicKeyRetrieval

whether to allow public key retrieval

capabilitiesFlags

Values for the capabilities flag bitmask used by the MySQL protocol.

database

Database used for login

password

the password

useSSL

whether to use SSL

user

the user name

Attributes

Source
MySQLProtocol.scala

Creates a client prepared statement with the given SQL.

Creates a client prepared statement with the given SQL.

Value parameters

sql

SQL queries based on text protocols

Attributes

Source
MySQLProtocol.scala
def close(): F[Unit]

Closes the connection.

Closes the connection.

Attributes

Source
MySQLProtocol.scala

Returns the initial packet.

Returns the initial packet.

Attributes

Returns

the initial packet

Source
MySQLProtocol.scala

Resets the sequence id.

Resets the sequence id.

Attributes

Source
MySQLProtocol.scala

Creates a server prepared statement with the given SQL.

Creates a server prepared statement with the given SQL.

Value parameters

sql

SQL queries based on text protocols

Attributes

Source
MySQLProtocol.scala
def statement(sql: String): Statement[F]

Creates a statement with the given SQL.

Creates a statement with the given SQL.

Value parameters

sql

SQL queries based on text protocols

Attributes

Source
MySQLProtocol.scala