Creates a batch from given sql
statement,
with a first
parameter list for for SQL execution, and zero or many
other
parameter lists for other SQL executions, after in the same batch.
Creates a batch from given sql
statement,
with a first
parameter list for for SQL execution, and zero or many
other
parameter lists for other SQL executions, after in the same batch.
SQL statement
Parameter list for the first SQL execution
Parameter lists for other SQL executions in the same batch
import anorm.{ BatchSql, NamedParameter } BatchSql("EXEC proc ?, ?", // Batch with 1 execution Seq[NamedParameter]("a" -> "Foo", "b" -> "Bar")) BatchSql("EXEC proc ?, ?", // Batch with 2 executions Seq[NamedParameter]("a" -> "Foo", "b" -> "Bar"), Seq[NamedParameter]("a" -> "Lorem", "b" -> "Ipsum"))
SQL batch companion