frees-io/freestyle-cassandra

Spike - Object Mapper

Closed this issue · 3 comments

Research and discussion about the Object Mapper feature.

Basically, we need to describe what features we want and how they should like (in code)

We want an object mapper with these features:

def insertStatement[F[_], T]: FreeS[F, PreparedStatement]
def populateStatement[F[_], T](st: PreparedStatement, t: T): FreeS[F, BoundStatement]
def insert[F[_], T](t: T): FreeS[F, ResultSet]
def selectStatement[F[_], T]: FreeS[F, ResultSet]
  • Fetch a list, an option or directly an object from a ResultSet using the ResultSetAPI.
def readA[F[_], T](rs: ResultSet): FreeS[F, T]
def readOptionA[F[_], T](rs: ResultSet): FreeS[F, Option[T]]
def readListA[F[_], T](rs: ResultSet): FreeS[F, List[T]]

Please, @FPerezP could you review? Thanks

Sounds good, Fede! Thanks a lot!