scalikejdbc.ParameterBinder
See theParameterBinder companion object
trait ParameterBinder
Enables customizing StatementExecutor#bindParams behavior.
val bytes = Array[Byte](1,2,3, ...)
val in = ByteArrayInputStream(bytes)
val bin = ParameterBinder(
value = in,
binder = (stmt, idx) => stmt.setBinaryStream(idx, in, bytes.length)
)
sql"insert into table (bin) values (${bin})".update.apply()
Attributes
- Companion
- object
- Source
- ParameterBinder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Members list
In this article