class QueryBuilder[R] extends AnyRef
- Alphabetic
- By Inheritance
- QueryBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def all: IO[List[R]]
Convenience method to get the results from the stream as a List
- def as[T](implicit rw: RW[T]): QueryBuilder[T]
Translates the results to a return type of T
Translates the results to a return type of T
- T
return type
- rw
the RW for conversion
- returns
QueryBuilder[T]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val converter: (Json) => R
- def count: IO[Int]
Streams the result to return a count.
Streams the result to return a count. A query that generates a count would be more efficient.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def first: IO[Option[R]]
The first result from the stream if there are any results.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator: IO[Iterator[R]]
- def last: IO[Option[R]]
The last result from the stream if there are any results.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def one: IO[R]
Retrieves exactly one result from the query.
Retrieves exactly one result from the query. If there is zero or more than one an exception will be thrown.
- returns
IO[R]
- def process(processor: (DBQueue, R) => IO[DBQueue], batchSize: Int = 1000): IO[ProcessStats]
Process through the stream with the ability to batch queue db inserts, upserts, and deletes.
Process through the stream with the ability to batch queue db inserts, upserts, and deletes.
- processor
the function to handle processing the items in the stream
- batchSize
the maximum records to hold in memory for a specific collection and operation
- returns
IO[ProcessStats]
- val query: Query
- def stream: Stream[IO, R]
Creates a Stream to get all the results from the query
Creates a Stream to get all the results from the query
- returns
fs2.Stream[IO, R]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- QueryBuilder → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated