SqlInterpolator

doobie.syntax.SqlInterpolator
See theSqlInterpolator companion object
final class SqlInterpolator(sc: StringContext) extends AnyVal

String interpolator for SQL literals. An expression of the form sql".. $a ... $b ..." with interpolated values of type A and B (which must have instances of Put) yields a value of type Fragment.

Attributes

Companion:
object
Source:
string.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def fr(a: SingleFragment[_]*)(implicit pos: Pos): Fragment

Interpolator for a statement fragment that can contain interpolated values. When inserted into the final SQL statement this fragment will be followed by a space. This is normally what you want, and it makes it easier to concatenate fragments because you don't need to think about intervening whitespace. If you do not want this behavior, use fr0.

Interpolator for a statement fragment that can contain interpolated values. When inserted into the final SQL statement this fragment will be followed by a space. This is normally what you want, and it makes it easier to concatenate fragments because you don't need to think about intervening whitespace. If you do not want this behavior, use fr0.

Attributes

Source:
string.scala
def fr0(a: SingleFragment[_]*)(implicit pos: Pos): Fragment

Interpolator for a statement fragment that can contain interpolated values. Unlike fr no attempt is made to be helpful with respect to whitespace.

Interpolator for a statement fragment that can contain interpolated values. Unlike fr no attempt is made to be helpful with respect to whitespace.

Attributes

Source:
string.scala
def sql(a: SingleFragment[_]*)(implicit pos: Pos): Fragment

Alternative name for the fr0 interpolator.

Alternative name for the fr0 interpolator.

Attributes

Source:
string.scala