TableDefinition

doobie.TableDefinition$
See theTableDefinition companion class

Attributes

Companion
class
Source
TableDefinition.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

trait RowHelpers[TRow](val tableDefinition: TableDefinition)

Helper that allows you to quickly get some of the queries for the table.

Helper that allows you to quickly get some of the queries for the table.

You should put this on the companion object of the row.

Example:

 object Cars extends TableDefinition("cars") {
   val idCol = Column[Long]("id")
   val makeCol = Column[String]("make")

   case class Row(id: Long, make: String)
   object Row extends WithSQLDefinition[Row](
     Composite((idCol.sqlDef, makeCol.sqlDef))(Row.apply)(Tuple.fromProductTyped)
   ) with TableDefinition.RowHelpers[Row](this)
 }

Type parameters

TRow

the type of the row.

Attributes

Source
TableDefinition.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Extensions

Extensions

extension [TRow](withDefinedRow: SQLDefinition[TRow] & RowHelpers[TRow])(withDefinedRow: SQLDefinition[TRow] & RowHelpers[TRow])
def insertOnConflictDoNothing[A](columns: Columns[A]): Update[TRow]

As RowHelpers.insertOnConflictDoNothing0 but allows to specify the conflict resolution columns.

As RowHelpers.insertOnConflictDoNothing0 but allows to specify the conflict resolution columns.

Attributes

Source
TableDefinition.scala