ldbc.connector
Members list
Packages
Type members
Classlikes
Attributes
- Source
- Connection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Connection.type
Attributes
- Companion
- trait
- Source
- ConnectionProvider.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConnectionProvider.type
Attributes
- Source
- Connector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Connector.type
A connection (session) with a specific database. SQL statements are executed and results are returned within the context of a connection.
A connection (session) with a specific database. SQL statements are executed and results are returned within the context of a connection.
Type parameters
- F
-
the effect type
Attributes
- Source
- LdbcConnection.scala
- Supertypes
Configuration for MySQL database connections.
Configuration for MySQL database connections.
This trait provides a fluent API for configuring MySQL connection parameters including host, port, authentication, SSL settings, and various connection options.
Attributes
- Example
-
val config = MySQLConfig.default .setHost("localhost") .setPort(3306) .setUser("myuser") .setPassword("mypassword") .setDatabase("mydatabase") .setSSL(SSL.Trusted)
- Companion
- object
- Source
- MySQLConfig.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Companion object for MySQLConfig providing factory methods.
Companion object for MySQLConfig providing factory methods.
Attributes
- Companion
- trait
- Source
- MySQLConfig.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MySQLConfig.type
A DataSource implementation for MySQL connections using the pure Scala MySQL wire protocol.
A DataSource implementation for MySQL connections using the pure Scala MySQL wire protocol.
This DataSource provides connection pooling capabilities and manages MySQL connections with support for SSL, authentication, prepared statements, and various connection options. It also supports lifecycle hooks that can be executed before and after connection acquisition.
Type parameters
- A
-
the type of value returned by the before hook
- F
-
the effect type (e.g., IO, Task) that must have Async, Network, Console, Hashing, and UUIDGen capabilities
Value parameters
- after
-
optional hook to execute after a connection is used
- allowPublicKeyRetrieval
-
whether to allow retrieval of RSA public keys from the server
- before
-
optional hook to execute before a connection is acquired
- database
-
the default database to use upon connection
- databaseTerm
-
the database terminology to use (CATALOG or SCHEMA)
- debug
-
whether to enable debug logging for connections
- host
-
the hostname or IP address of the MySQL server
- logHandler
-
optional handler for logging connection and query events
- password
-
the password for authenticating with the MySQL server
- port
-
the port number on which the MySQL server is listening
- readTimeout
-
the timeout duration for read operations
- socketOptions
-
socket-level options for the TCP connection
- ssl
-
the SSL configuration for secure connections
- tracer
-
optional OpenTelemetry tracer for distributed tracing
- useCursorFetch
-
whether to use cursor-based fetching for result sets
- useServerPrepStmts
-
whether to use server-side prepared statements
- user
-
the username for authenticating with the MySQL server
Attributes
- Example
-
val dataSource = MySQLDataSource[IO, Unit]( host = "localhost", port = 3306, user = "myuser", password = Some("mypassword"), database = Some("mydatabase"), ssl = SSL.Trusted ) // With lifecycle hooks val dataSourceWithHooks = dataSource .withBefore(conn => IO.println("Connection acquired")) .withAfter((_, conn) => IO.println("Connection released"))
- Companion
- object
- Source
- MySQLDataSource.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait DataSource[F]class Objecttrait Matchableclass AnyShow all
Companion object for MySQLDataSource providing factory methods.
Companion object for MySQLDataSource providing factory methods.
Attributes
- Companion
- class
- Source
- MySQLDataSource.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MySQLDataSource.type
Represents SQL SAVEPOINTS in MySQL.
Deprecated classlikes
Attributes
- Companion
- object
- Deprecated
- true
- Source
- ConnectionProvider.scala
- Supertypes
Types
Attributes
- Source
- Connection.scala
Exports
Defined exports
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Deprecated defined exports
Attributes
- Deprecated
- true
- Source
- package.scala