frees-io / freestyle-cassandra

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

Insert statement from a case class #124

Open fedefernandez opened 6 years ago

fedefernandez commented 6 years ago

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)