Cursor

skunk.Cursor
See theCursor companion object
trait Cursor[F[_], A]

An open cursor from which rows can be fetched, valid during the lifetime its defining Session. You can use this mechanism to implement chunked reads and paged results, although it is ofen more pleasant to use a Cursor-backed Stream, as produced by PreparedQuery#stream.

Attributes

Companion:
object
Source:
Cursor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cursor[F, A]

Members list

Concise view

Queries

def fetch(maxRows: Int): F[(List[A], Boolean)]

Fetch up to maxRows from this cursor, yielding a list of values and a boolean, true if more rows are available, false otherwise.

Fetch up to maxRows from this cursor, yielding a list of values and a boolean, true if more rows are available, false otherwise.

Attributes

Source:
Cursor.scala

Transformations

def mapK[G[_]](fk: FunctionK[F, G]): Cursor[G, A]

Transform this Cursor by a given FunctionK.

Transform this Cursor by a given FunctionK.

Attributes

Source:
Cursor.scala