Sets boolean value on statement.
Sets byte value on statement.
Sets character as parameter value.
Sets Java Character as parameter value.
Sets date as statement parameter.
Sets double value on statement.
Sets float value on statement.
Sets Id parameter on statement.
Sets Id parameter on statement.
SQL("INSERT INTO tbl(id, name) VALUES ({i}, {v}"). on("i" -> anorm.Id("id"), "v" -> "name")
Sets integer value on statement.
Sets Java Integer object on statement.
Sets Java big decimal on statement.
Sets Java big integer on statement.
Sets Java Boolean object on statement.
Sets Java Byte object on statement.
Sets Java Double object on statement.
Sets Java Float object on statement.
Sets Java Long object on statement.
Sets Java Short object on statement.
Sets joda-time DateTime as statement parameter.
Sets joda-time Instant as statement parameter.
Sets long value on statement.
Sets null for None value.
Sets null for not assigned value.
Sets opaque value as statement parameter.
Sets optional A inferred as Option[A].
Sets optional A inferred as Option[A].
SQL("SELECT * FROM Test WHERE category = {c}") .on('c -> Option("cat"))
Sets big decimal on statement.
Sets big integer on statement.
Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).
Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).
import anorm.SeqParameter SQL("SELECT * FROM Test t WHERE {categories}"). on('categories -> SeqParameter( values = Seq("a", "b", "c"), separator = " OR ", pre = "EXISTS (SELECT NULL FROM j WHERE t.id=j.id AND name=", post = ")"))
Sets multi-value parameter on statement.
Sets multi-value parameter on statement.
SQL("SELECT * FROM Test WHERE cat IN ({categories})"). on('categories -> Seq("a", "b", "c")
Sets short value on statement.
Sets not empty optional A inferred as Some[A].
Sets not empty optional A inferred as Some[A].
SQL("SELECT * FROM Test WHERE category = {c}").on('c -> Some("cat"))
Sets string as parameter value.
Sets timestamp as statement parameter.
Sets UUID as statement parameter.
Provided conversions to set statement parameter.