Object

doobie.postgres.free

copymanager

Related Doc: package free

Permalink

object copymanager extends CopyManagerIOInstances

Algebra and free monad for primitive operations over a org.postgresql.copy.CopyManager. 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.

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

The library provides a natural transformation to Kleisli[M, CopyManager, 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: CopyManagerIO[Foo] = ...

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

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

Type Members

  1. type CopyManagerIO[A] = Free[CopyManagerOp, A]

    Permalink

    Free monad over a free functor of CopyManagerOp; abstractly, a computation that consumes a org.postgresql.copy.CopyManager and produces a value of type A.

  2. implicit class CopyManagerIOOps[A] extends AnyRef

    Permalink

    Syntax for CopyManagerIO.

  3. sealed trait CopyManagerOp[A] extends AnyRef

    Permalink

    Sum type of primitive operations over a org.postgresql.copy.CopyManager.

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 CaptureCopyManagerIO: Capture[CopyManagerIO]

    Permalink

    Capture instance for CopyManagerIO.

  5. implicit val CatchableCopyManagerIO: Catchable[CopyManagerIO]

    Permalink

    Catchable instance for CopyManagerIO.

  6. object CopyManagerOp

    Permalink

    Module of constructors for CopyManagerOp.

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

  7. final def asInstanceOf[T0]: T0

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

    Permalink

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

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def copyIn(a: String): CopyManagerIO[CopyIn]

    Permalink

  11. def copyIn(a: String, b: InputStream): CopyManagerIO[Long]

    Permalink

  12. def copyIn(a: String, b: Reader, c: Int): CopyManagerIO[Long]

    Permalink

  13. def copyIn(a: String, b: Reader): CopyManagerIO[Long]

    Permalink

  14. def copyIn(a: String, b: InputStream, c: Int): CopyManagerIO[Long]

    Permalink

  15. def copyOut(a: String): CopyManagerIO[CopyOut]

    Permalink

  16. def copyOut(a: String, b: Writer): CopyManagerIO[Long]

    Permalink

  17. def copyOut(a: String, b: OutputStream): CopyManagerIO[Long]

    Permalink

  18. def delay[A](a: ⇒ A): CopyManagerIO[A]

    Permalink

    Non-strict unit for capturing effects.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  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]): ~>[CopyManagerOp, [γ$0$]Kleisli[M, CopyManager, γ$0$]]

    Permalink

    Natural transformation from CopyManagerOp to Kleisli for the given M, consuming a org.postgresql.copy.CopyManager.

  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 CopyManagerIOInstances

Inherited from AnyRef

Inherited from Any

Algebra

Constructors (Lifting)

Constructors (Primitives)

Typeclass Instances

Ungrouped