All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.getquill.cassandrazio.Probing.scala Maven / Gradle / Ivy

The newest version!
package io.getquill.cassandrazio

import io.getquill.CassandraZioSession

import scala.util.Try

trait Probing {
  def probingSession: Option[CassandraZioSession] = None

  def probe(statement: String): scala.util.Try[_] =
    probingSession match {
      case Some(csession) =>
        Try(csession.prepare(statement))
      case None =>
        Try(())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy