doobie.TableDefinition$
See theTableDefinition companion class
object TableDefinition
Attributes
- Companion
- class
- Source
- TableDefinition.scala
- Graph
-
- Supertypes
- Self type
-
TableDefinition.type
Members list
Type members
Classlikes
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
- Self type
-
SQLDefinition[TRow]
Givens
Givens
Attributes
- Source
- TableDefinition.scala
given given_Conversion_TableDefinition_SingleFragment: Conversion[TableDefinition, SingleFragment[Nothing]]
Attributes
- Source
- TableDefinition.scala
Extensions
Extensions
extension [TRow](withDefinedRow: SQLDefinition[TRow] & RowHelpers[TRow])(withDefinedRow: SQLDefinition[TRow] & RowHelpers[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
In this article