Object

doobie.postgres.free

fastpath

Related Doc: package free

Permalink

object fastpath extends FastpathIOInstances

Algebra and free monad for primitive operations over a org.postgresql.fastpath.Fastpath. This is a low-level API that exposes lifecycle-managed JDBC objects directly and is intended mainly for library developers. End users will prefer a safer, higher-level API such as that provided in the doobie.hi package.

FastpathIO is a free monad that must be run via an interpreter, most commonly via natural transformation of its underlying algebra FastpathOp to another monad via Free#foldMap.

The library provides a natural transformation to Kleisli[M, Fastpath, A] for any exception-trapping (Catchable) and effect-capturing (Capture) monad M. Such evidence is provided for Task, IO, and stdlib Future; and transK[M] is provided as syntax.

// An action to run
val a: FastpathIO[Foo] = ...

// A JDBC object
val s: Fastpath = ...

// Unfolding into a Task
val ta: Task[A] = a.transK[Task].run(s)
Source
fastpath.scala
Linear Supertypes
FastpathIOInstances, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. fastpath
  2. FastpathIOInstances
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type FastpathIO[A] = Free[FastpathOp, A]

    Permalink

    Free monad over a free functor of FastpathOp; abstractly, a computation that consumes a org.postgresql.fastpath.Fastpath and produces a value of type A.

  2. implicit class FastpathIOOps[A] extends AnyRef

    Permalink

    Syntax for FastpathIO.

  3. sealed trait FastpathOp[A] extends AnyRef

    Permalink

    Sum type of primitive operations over a org.postgresql.fastpath.Fastpath.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val CaptureFastpathIO: Capture[FastpathIO]

    Permalink

    Capture instance for FastpathIO.

  5. implicit val CatchableFastpathIO: Catchable[FastpathIO]

    Permalink

    Catchable instance for FastpathIO.

  6. object FastpathOp

    Permalink

    Module of constructors for FastpathOp.

    Module of constructors for FastpathOp. These are rarely useful outside of the implementation; prefer the smart constructors provided by the fastpath module.

  7. def addFunction(a: String, b: Int): FastpathIO[Unit]

    Permalink

  8. def addFunctions(a: ResultSet): FastpathIO[Unit]

    Permalink

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def attempt[A](a: FastpathIO[A]): FastpathIO[\/[Throwable, A]]

    Permalink

    Lift a FastpathIO[A] into an exception-capturing FastpathIO[Throwable \/ A].

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def delay[A](a: ⇒ A): FastpathIO[A]

    Permalink

    Non-strict unit for capturing effects.

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fastpath(a: Int, b: Boolean, c: Array[FastpathArg]): FastpathIO[AnyRef]

    Permalink

  16. def fastpath(a: String, b: Boolean, c: Array[FastpathArg]): FastpathIO[AnyRef]

    Permalink

  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getData(a: String, b: Array[FastpathArg]): FastpathIO[Array[Byte]]

    Permalink

  20. def getID(a: String): FastpathIO[Int]

    Permalink

  21. def getInteger(a: String, b: Array[FastpathArg]): FastpathIO[Int]

    Permalink

  22. def getOID(a: String, b: Array[FastpathArg]): FastpathIO[Long]

    Permalink

  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def kleisliTrans[M[_]](implicit arg0: Monad[M], arg1: Catchable[M], arg2: Capture[M]): ~>[FastpathOp, [γ$0$]Kleisli[M, Fastpath, γ$0$]]

    Permalink

    Natural transformation from FastpathOp to Kleisli for the given M, consuming a org.postgresql.fastpath.Fastpath.

  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FastpathIOInstances

Inherited from AnyRef

Inherited from Any

Algebra

Constructors (Lifting)

Constructors (Primitives)

Typeclass Instances

Ungrouped