From b03e9ed5766d5ec3856146653526168fb086aee7 Mon Sep 17 00:00:00 2001 From: Aleksandr Shabalin Date: Wed, 27 Nov 2024 13:33:07 +0300 Subject: [PATCH] - updated doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7573343..33078f8 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ object Dao { def apply[F[_] : Async](session: CassandraSession[F]) = for { insert <- insertQuery.prepare(session) update <- updateQuery.prepare(session) - updateAlternative <- insertQueryAlternative.prepare(session) + insertAlternative <- insertQueryAlternative.prepare(session) select <- selectQuery.prepare(session) } yield new Dao[F] { override def put(value: Model) = insert( @@ -123,7 +123,7 @@ object Dao { value.ck, value.data, value.metaData - ).execute.void // updateAlternative(value).execute.void + ).execute.void // insertAlternative(value).execute.void override def update(key: Key, data: Data): F[Unit] = updateQuery(data, key).execute.void override def get(key: Key) = select(key).config(_.setExecutionProfileName("default")).select.head.compile.last }