frees-io / freestyle-cassandra

Freestyle Cassandra
http://frees.io/
Apache License 2.0
17 stars 4 forks source link

Populate a prepared statement with a case class instance #125

Open fedefernandez opened 6 years ago

fedefernandez commented 6 years ago

For the object mapper we need a method for populating a previously created insert prepared statement with a case class instance using the StatementAPI.setByteBufferListByName method.

def populateStatement[F[_], T](st: PreparedStatement, t: T): FreeS[F, BoundStatement]