ldbc.connector.net.protocol

Members list

Type members

Classlikes

trait Authentication[F[_]]

Protocol to handle the Authentication Phase

Protocol to handle the Authentication Phase

Assume the client wants to log in via user account U and that user account is defined to use authentication method server_method. The fast authentication path is used when:

  • the server used server_method to generate authentication data in the Protocol::Handshake packet.
  • the client used a client_authentication_method in Protocol::HandshakeResponse: that is compatible with the server_method used by the server.

In that case the first round of authentication has been already commenced during the handshake. Now, depending on the authentication method server_method, further authentication can be exchanged until the server either accepts or refuses the authentication.

Type parameters

F

The effect type

Attributes

Companion
object
Source
Authentication.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Protocol[F]

Attributes

Companion
trait
Source
Authentication.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class CallableStatementImpl[F[_]](protocol: Protocol[F], serverVariables: Map[String, String], sql: String, paramInfo: ParamInfo, params: Ref[F, SortedMap[Int, Parameter]], batchedArgs: Ref[F, Vector[String]], connectionClosed: Ref[F, Boolean], statementClosed: Ref[F, Boolean], resultSetClosed: Ref[F, Boolean], currentResultSet: Ref[F, Option[ResultSet]], outputParameterResult: Ref[F, Option[ResultSetImpl]], resultSets: Ref[F, List[ResultSetImpl]], parameterIndexToRsIndex: Ref[F, Map[Int, Int]], updateCount: Ref[F, Long], moreResults: Ref[F, Boolean], autoGeneratedKeys: Ref[F, Int], lastInsertId: Ref[F, Long], resultSetType: Int, resultSetConcurrency: Int)(implicit evidence$1: Exchange[F], evidence$2: Tracer[F], F: MonadThrow[F]) extends CallableStatement[F]

Attributes

Companion
object
Source
CallableStatementImpl.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Statement[F]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
CallableStatementImpl.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ClientPreparedStatement[F[_]](protocol: Protocol[F], serverVariables: Map[String, String], sql: String, params: Ref[F, SortedMap[Int, Parameter]], batchedArgs: Ref[F, Vector[String]], connectionClosed: Ref[F, Boolean], statementClosed: Ref[F, Boolean], resultSetClosed: Ref[F, Boolean], currentResultSet: Ref[F, Option[ResultSet]], updateCount: Ref[F, Long], moreResults: Ref[F, Boolean], autoGeneratedKeys: Ref[F, Int], lastInsertId: Ref[F, Long], resultSetType: Int, resultSetConcurrency: Int)(implicit evidence$1: Exchange[F], evidence$2: Tracer[F], F: MonadThrow[F])

PreparedStatement for query construction at the client side.

PreparedStatement for query construction at the client side.

Type parameters

F

the effect type

Value parameters

ev

the effect type class

params

the parameters

protocol

Protocol is a protocol to communicate with MySQL server.

sql

the SQL statement

Attributes

Source
ClientPreparedStatement.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Statement[F]
class Object
trait Matchable
class Any
Show all
trait Exchange[F[_]]

A trait that represents a function that exchanges a value of type A in a context F with another value of type A. The exchange operation is atomic and uncancelable.

A trait that represents a function that exchanges a value of type A in a context F with another value of type A. The exchange operation is atomic and uncancelable.

Attributes

Companion
object
Source
Exchange.scala
Supertypes
class Object
trait Matchable
class Any
object Exchange

Attributes

Companion
trait
Source
Exchange.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Exchange.type
trait Initial[F[_]]

Initial packet is the first packet sent by the server to the client. It contains the server version, connection id, and authentication plugin data. The client uses this information to determine the authentication method to use.

Initial packet is the first packet sent by the server to the client. It contains the server version, connection id, and authentication plugin data. The client uses this information to determine the authentication method to use.

Type parameters

F

the effect type

Attributes

Companion
object
Source
Initial.scala
Supertypes
class Object
trait Matchable
class Any
object Initial

Attributes

Companion
trait
Source
Initial.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Initial.type
case class ServerPreparedStatement[F[_]](protocol: Protocol[F], serverVariables: Map[String, String], statementId: Long, sql: String, params: Ref[F, SortedMap[Int, Parameter]], batchedArgs: Ref[F, Vector[String]], connectionClosed: Ref[F, Boolean], statementClosed: Ref[F, Boolean], resultSetClosed: Ref[F, Boolean], currentResultSet: Ref[F, Option[ResultSet]], updateCount: Ref[F, Long], moreResults: Ref[F, Boolean], autoGeneratedKeys: Ref[F, Int], lastInsertId: Ref[F, Long], resultSetType: Int, resultSetConcurrency: Int)(implicit evidence$1: Exchange[F], evidence$2: Tracer[F], F: MonadThrow[F])

PreparedStatement for query construction at the server side.

PreparedStatement for query construction at the server side.

Type parameters

F

The effect type

Value parameters

params

the parameters

protocol

Protocol is a protocol to communicate with MySQL server.

sql

the SQL statement

statementId

the statement id

Attributes

Source
ServerPreparedStatement.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Statement[F]
class Object
trait Matchable
class Any
Show all
object StatementImpl

Attributes

Source
StatementImpl.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait UtilityCommands[F[_]]

Utility commands

Utility commands

Type parameters

F

the effect type

Attributes

Source
UtilityCommands.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Protocol[F]

Value members

Concrete methods

def exchange[F[_] : Tracer, A](label: String)(f: (Span[F]) => F[A])(implicit evidence$1: Tracer[F], exchange: Exchange[F]): F[A]

Attributes

Source
package.scala
def parseHeader(headerBytes: Array[Byte]): Int

The size of the header in bytes.

The size of the header in bytes.

Attributes

Source
package.scala