bindKandraRepository

inline fun <T : Any> DI.MainBuilder.bindKandraRepository(session: CqlSession, schema: TableSchema, scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.IO))

Type-safe helper for registering a KandraRepository and KandraSuspendRepository for a specific entity type T in a standalone Kodein DI module (outside Ktor).

When used outside of the Kandra Ktor plugin, supply a scope whose lifetime matches the owning component so eventual writes are properly cancelled on shutdown.