Package

io

getquill

Permalink

package getquill

Visibility
  1. Public
  2. All

Type Members

  1. class CassandraZioContext[N <: NamingStrategy] extends CassandraRowContext[N] with ZioContext[CqlIdiom, N] with StandardContext[CqlIdiom, N] with CioOps

    Permalink

    Quill context that executes Cassandra queries inside of ZIO.

    Quill context that executes Cassandra queries inside of ZIO. Unlike most other contexts that require passing in a Data Source, this context takes in a ZioCassandraSession as a resource dependency which can be provided later (see the ZioCassandraSession object for helper methods that assist in doing this).

    The resource dependency itself is just a Has[ZioCassandraSession]

    Various methods in the io.getquill.ZioCassandraSession can assist in simplifying it's creation, for example, you can provide a Config object instead of a ZioCassandraSession like this (note that the resulting ZioCassandraSession has a closing bracket). {{ val zioSession = ZioCassandraSession.fromPrefix("testStreamDB") }}

    If you are using a Plain Scala app however, you will need to manually run it e.g. using zio.Runtime {{ Runtime.default.unsafeRun(MyZioContext.run(query[Person]).provideCustomLayer(zioSession)) }}

  2. case class CassandraZioSession(cluster: Cluster, keyspace: String, preparedStatementCacheSize: Long) extends CassandraSession with SyncCache with AsyncFutureCache with AutoCloseable with Product with Serializable

    Permalink
  3. trait CioOps extends AnyRef

    Permalink

Value Members

  1. object CassandraZioContext extends CioOps

    Permalink
  2. object CassandraZioSession extends Serializable

    Permalink
  3. package util

    Permalink

Ungrouped