anorm

SqlStringInterpolation

implicit final class SqlStringInterpolation extends AnyVal

Creates an SQL query using String Interpolation feature. It is a 1-step alternative for SQL("...").on(...) functions.

SQL"""
  UPDATE computer SET name = ${computer.name},
  introduced = ${computer.introduced},
  discontinued = ${computer.discontinued},
  company_id = ${computer.companyId}
  WHERE id = $id
""".executeUpdate()
Source
package.scala
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SqlStringInterpolation
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SqlStringInterpolation(sc: StringContext)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. def SQL(args: ParameterValue*): SimpleSql[Row]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. val sc: StringContext

  9. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped