final class SqlInterpolator 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
.
- Source
- string.scala
- Alphabetic
- By Inheritance
- SqlInterpolator
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SqlInterpolator(sc: StringContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
fr(a: SingleFragment[_]*)(implicit pos: Pos): util.fragment.Fragment
Interpolator for a statement fragment that can contain interpolated values.
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
. -
def
fr0(a: SingleFragment[_]*)(implicit pos: Pos): util.fragment.Fragment
Interpolator for a statement fragment that can contain interpolated values.
Interpolator for a statement fragment that can contain interpolated values. Unlike
fr
no attempt is made to be helpful with respect to whitespace. -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
sql(a: SingleFragment[_]*)(implicit pos: Pos): util.fragment.Fragment
Alternative name for the
fr0
interpolator. -
def
toString(): String
- Definition Classes
- Any