Prefixable

doobie.TypedMultiFragment.Prefixable
trait Prefixable[A] extends TypedMultiFragment[A]

A TypedMultiFragment that can be prefixed.

Attributes

Source
TypedMultiFragment.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SQLDefinition[A]
class Column[A]

Members list

Type members

Types

type Self[X] <: Prefixable[X]

Attributes

Source
TypedMultiFragment.scala

Value members

Abstract methods

def prefixedWith(prefix: String): Self[A]

Prefixes all column names with prefix.. If this already had a prefix, the prefix is replaced.

Prefixes all column names with prefix.. If this already had a prefix, the prefix is replaced.

Attributes

Source
TypedMultiFragment.scala

Inherited methods

inline def tmf: TypedMultiFragment[A]

To allow widening the type of Column and similar ones to TypedMultiFragment.

To allow widening the type of Column and similar ones to TypedMultiFragment.

This is useful when working with tuples of TypedMultiFragments, because (Column[Int], Column[String]) is not the same thing as (TypedMultiFragment[Int], TypedMultiFragment[String]).

Attributes

Inherited from:
TypedMultiFragment
Source
TypedMultiFragment.scala

Inherited and Abstract methods

Attributes

Inherited from:
TypedMultiFragment
Source
TypedMultiFragment.scala
def read: Read[A]

Attributes

Inherited from:
TypedMultiFragment
Source
TypedMultiFragment.scala

Concrete fields

lazy val excluded: Self[A]

Prefixes all column names with EXCLUDED, which is a special SQL table name when resolving insert/update conflicts.

Prefixes all column names with EXCLUDED, which is a special SQL table name when resolving insert/update conflicts.

Example:

 sql""" ${t.Row.insertSqlFor(t)} ON CONFLICT (${t.userId},
${t.weaponId}) DO UPDATE SET ${t.kills} = ${t.kills} +
${t.kills.excluded} """ 

Attributes

Source
TypedMultiFragment.scala