skunk.Command
See theCommand companion object
SQL and parameter encoder for a statement that returns no rows. We assume that sql
has the same number of placeholders of the form $1
, $2
, etc., as the number of slots encoded by encoder
, and that the parameter types specified by encoder
are consistent with the schema. The check
methods on Session provide a means to verify this assumption.
You can construct a Command
directly, although it is more typical to use the sql
interpolator.
sql"INSERT INTO foo VALUES ($int2, $varchar)".command // Command[(Short, String)]
Value parameters
- encoder
-
An encoder for all parameters
$1
,$2
, etc., insql
. - sql
-
A SQL statement returning no rows.
Attributes
- See also
-
StringContextOps for information on the
sql
interpolator.Session for information on executing a
Command
. - Companion
- object
- Source
- Command.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Statement[A]class Objecttrait Matchableclass Any
Members list
In this article