I've decided to implement a database wrapper to provide data operations of a web service using postgresql dbms.
Models in my database are somelike complex and frameworks like slick do provide more problems and need of workarounds due to type complexity than time or effort saving.
Following this Programming in Scala 2 quote:
Traits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then be reused by mixing them into classes. Unlike class inheritance, in which each class must inherit from just one superclass, a class can mix in any number of traits
I'm implementing this wrapper as a trait.
A couple of questions arise:
Does anyone out there recommend me to implement this using another scala structure?
Is anyone successfully using a database abstraction library for postgresql while programming in scala?