Skip to content

Commit

Permalink
- updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Shabalin committed Nov 27, 2024
1 parent 58a1e78 commit b03e9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ 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(
value.pk,
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
}
Expand Down

0 comments on commit b03e9ed

Please sign in to comment.