TableWithPK

abstract class TableWithPK[E, PK](implicit iden: Identifiable[E, PK])
Since

24 Sep 2019

class Object
trait Matchable
class Any

Type members

Classlikes

protected object Column extends SproutSub[String]
object row

Types

final type Column = Type

Value members

Abstract methods

def metaPK: Meta[PK]
def name: TableName
def readE: Read[E]
def showPK: Show[PK]

Should be overriden as non implicit since doobie doesn't provide semiauto-derivation so you want to write in your subclasses:

Should be overriden as non implicit since doobie doesn't provide semiauto-derivation so you want to write in your subclasses:

 override def readE: Read[MyCaseClass] = Read[MyCaseClass]

These are then aliased as implicits in the DoobieQueryAlgebra for seamless use 99% of the cases

def writeE: Write[E]