params property
Parameter names and values that bind to placeholders in the SQL string.
A parameter placeholder consists of the @
character followed by the
parameter name (for example, @firstName
). Parameter names must conform
to the naming requirements of identifiers as specified at
https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can
appear anywhere that a literal value is expected. The same parameter name
can be used more than once, for example: "WHERE id > @msg_id AND id < @msg_id + 100"
It is an error to execute a SQL statement with unbound
parameters.
The values for Object must be JSON objects. It can consist of num
,
String
, bool
and null
as well as Map
and List
values.
Implementation
core.Map<core.String, core.Object?>? params;