ConnectorModuleImpl

libretto.examples.libraryOfAlexandria.ConnectorModuleImpl$
opaque object ConnectorModuleImpl extends ConnectorModule

Adapts the vendor-provided API for consumption by Libretto. We codify the rules of use, such as

  • do not close the connector while it has active connections,
  • do not reuse or close a connection while still reading query results so that they cannot be violated by the client Libretto code.

There is a clash of two worlds here: sequential, non-linear vs. concurrent, linear.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object shareableConnector extends CloseableCosemigroup[Connector]

Attributes

Supertypes
trait CloseableCosemigroup[Connector]
trait Closeable[Connector]
trait Cosemigroup[Connector]
class Object
trait Matchable
class Any
Show all
Self type

Types

override opaque type Connector

Value members

Concrete methods

override def closeConnector: Connector -⚬ Done

Attributes

Definition Classes
def createConnector: Done -⚬ Connector
override def fetchScroll: Connector |*| Val[ScrollId] -⚬ ValSource[Page]

Attributes

Definition Classes

Givens

Givens

override given shareableConnector: shareableConnector.type