freestyle-cassandra icon indicating copy to clipboard operation
freestyle-cassandra copied to clipboard

Insert statement from a case class

Open fedefernandez opened this issue 8 years ago • 0 comments

For the object mapper, we need a method that creates an insert prepared statement from a case class type using the StatementGenerator and the SessionAPI.prepare method.

def insertStatement[F[_], T]: FreeS[F, PreparedStatement]

This should take into account if the fields are options and omit the values of they're empty (None)

fedefernandez avatar Nov 20 '17 07:11 fedefernandez