package db
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- db
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class ChunkWithMetadata[V](chunk: Chunk[V], pulledAt: Instant = Instant.now()) extends Product with Serializable
- final type DbTransactor = Has[Transactor[Task]]
- implicit final class InstantOps extends AnyVal
- trait QueryBuilder[V, -S] extends AnyRef
- final case class QueryResult[V](metadata: ResultMetadata, results: List[V]) extends Product with Serializable
- final case class ResultMetadata(queryExecutionTime: Long) extends Product with Serializable
- final case class Setup[K <: Product, V <: Product, S <: Product with HashableState](queryBuilder: QueryBuilder[V, S], defaultState: S, keyExtract: (V) ⇒ K, stateFoldM: (S) ⇒ (QueryResult[V]) ⇒ UIO[S])(implicit evidence$1: Encoder[K], evidence$2: Decoder[K], evidence$3: SchemaFor[K], evidence$4: Encoder[V], evidence$5: Decoder[V], evidence$6: SchemaFor[V], evidence$7: Encoder[S], evidence$8: Decoder[S], evidence$9: SchemaFor[S]) extends tamer.Setup[K, V, S] with Product with Serializable
- final type TamerDBConfig = DbTransactor with QueryConfig
- case class TimeSegment(from: Instant, to: Instant) extends HashableState with Product with Serializable
-
abstract
class
Timestamped extends AnyRef
By specifying a field here, tamer will order database records according to this date.
By specifying a field here, tamer will order database records according to this date. Usually you want your latest update timestamp here.
- case class ValueWithMetadata[V](value: V, pulledAt: Instant = Instant.now()) extends Product with Serializable
Value Members
- final def fetch[K <: Product, V <: Product, S <: Product with HashableState](setup: Setup[K, V, S])(implicit arg0: Encoder[K], arg1: Decoder[K], arg2: SchemaFor[K], arg3: Encoder[V], arg4: Decoder[V], arg5: SchemaFor[V], arg6: Encoder[S], arg7: Decoder[S], arg8: SchemaFor[S]): ZIO[zio.ZEnv, TamerError, Unit]
- final def fetchWithTimeSegment[K <: Product, V <: Product with Timestamped](queryBuilder: (TimeSegment) ⇒ doobie.Query0[V])(earliest: Instant, tumblingStep: Duration, keyExtract: (V) ⇒ K)(implicit arg0: Encoder[K], arg1: Decoder[K], arg2: SchemaFor[K], arg3: Ordering[V], arg4: Encoder[V], arg5: Decoder[V], arg6: SchemaFor[V]): ZIO[zio.ZEnv, TamerError, Unit]
- final val hikariLayer: ZLayer[Blocking with DbConfig, TamerError, DbTransactor]
- object ConfigDb
- object Setup extends Serializable
- object Timestamped