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)) }}
ProtoQuill Note: Zio Cassandra context does not implement prepare
. This it can extend StandardContext
in Scala2-Quill because presence of prepare___
methods is not enforced. Due to stricter type requirements
in Dotty however, this is not allowed here.
- Companion:
- object
Type members
Inherited classlikes
- Inherited from:
- RowContext
Types
Inherited types
Base type used to determine whether there is an execution context that needs to be summoned to perform execution methods e.g. in the PostgresJasync contexts that use Scala Futures that need an ExecutionContext.
Base type used to determine whether there is an execution context that needs to be summoned to perform execution methods e.g. in the PostgresJasync contexts that use Scala Futures that need an ExecutionContext.
- Inherited from:
- Context
Value members
Concrete methods
Inherited methods
Internal API that cannot be made private due to how inline functions
Internal API that cannot be made private due to how inline functions
- Inherited from:
- ContextVerbStream
- Definition Classes
- CassandraStandardContext -> ProtoContextSecundus
- Inherited from:
- CassandraStandardContext
- Definition Classes
- CassandraStandardContext -> ProtoContextSecundus
- Inherited from:
- CassandraStandardContext
- Definition Classes
- CassandraStandardContext -> ProtoContextSecundus
- Inherited from:
- CassandraStandardContext
- Inherited from:
- EncodingDsl
- Inherited from:
- EncodingDsl
Inherited fields
Extensions
Inherited extensions
When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.
When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.
- Inherited from:
- Context
Implicits
Inherited implicits
- Inherited from:
- CassandraMapperConversions
- Inherited from:
- CassandraMapperConversions
- Inherited from:
- CassandraMapperConversions
- Inherited from:
- CassandraMapperConversionsLowPriorityImplicits
- Inherited from:
- CassandraMapperConversions
- Inherited from:
- CassandraMapperConversionsLowPriorityImplicits
- Inherited from:
- CollectionDecoders
- Inherited from:
- CollectionEncoders
- Inherited from:
- CollectionDecoders
- Inherited from:
- CollectionEncoders
- Inherited from:
- Decoders
- Inherited from:
- Encoders
- Inherited from:
- CollectionDecoders
- Inherited from:
- CollectionEncoders
- Inherited from:
- UdtDecoding