Inherited from ZioContext[CqlIdiom, N]
Inherited from ContextVerbStream[CqlIdiom, N]
Inherited from CassandraRowContext[N]
Inherited from UdtEncoding
Inherited from Decoders
Inherited from CollectionDecoders
Inherited from Encoders
Inherited from CollectionEncoders
Inherited from CassandraContext[N]
Inherited from Ops
Inherited from UdtMetaDsl
Inherited from Encodings
Inherited from CassandraTypes
Inherited from CassandraMappedTypes
Inherited from CassandraMapperConversions
Inherited from CassandraMapperConversionsLowPriorityImplicits
Inherited from Context[CqlIdiom, N]
Inherited from CoreDsl
Inherited from DynamicQueryDsl
Inherited from MetaDsl
Inherited from MetaDslLowPriorityImplicits
Inherited from EncodingDsl
Inherited from LowPriorityImplicits
Inherited from QuotationDsl
Inherited from QueryDsl
Inherited from OrdDsl
Inherited from InfixDsl
Inherited from Closeable
Inherited from AutoCloseable
Inherited from RowContext
Inherited from AnyRef
Inherited from Any
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
CassandraZioSession
as a resource dependency which can be provided later (see theCassandraZioSession
object for helper methods that assist in doing this).The resource dependency itself is just a Has[CassandraZioSession]
Various methods in the
io.getquill.CassandraZioSession
can assist in simplifying it's creation, for example, you can provide aConfig
object instead of aCassandraZioSession
like this (note that the resulting CassandraZioSession has a closing bracket). {{ val zioSession = CassandraZioSession.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)) }}