FragmentOps

doobie.postgres.syntax.FragmentOps
class FragmentOps(f: Fragment)

Attributes

Source
FragmentSyntax.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def copyIn[F[_] : Foldable, A](fa: F[A])(implicit evidence$1: Foldable[F], ev: Text[A]): ConnectionIO[Long]

Given a fragment of the form COPY table (col, ...) FROM STDIN construct a ConnectionIO that inserts the values provided in fa, returning the number of affected rows.

Given a fragment of the form COPY table (col, ...) FROM STDIN construct a ConnectionIO that inserts the values provided in fa, returning the number of affected rows.

Attributes

Source
FragmentSyntax.scala
def copyIn[A : Text](stream: Stream[ConnectionIO, A], minChunkSize: Int): ConnectionIO[Long]

Given a fragment of the form COPY table (col, ...) FROM STDIN construct a ConnectionIO that inserts the values provided by stream, returning the number of affected rows. Chunks input stream for more efficient sending to STDIN with minChunkSize.

Given a fragment of the form COPY table (col, ...) FROM STDIN construct a ConnectionIO that inserts the values provided by stream, returning the number of affected rows. Chunks input stream for more efficient sending to STDIN with minChunkSize.

Attributes

Source
FragmentSyntax.scala