import com.evolutiongaming.scassandra._
val config = CassandraConfig.Default
val session = for {
cluster <- CassandraCluster.of[IO](config, clusterId = 0)
session <- cluster.connect
} yield session
val name = for {
resultSet <- session.use { session => session.execute("SELECT name FROM users") }
} yield {
val row = resultSet.one()
row.decode[String]("name")
}
name.unsafeRunSync()
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")
libraryDependencies += "com.evolutiongaming" %% "scassandra" % "3.2.1"