pub const DB_QUERY_PARAMETER: &'static str;
Expand description
A database query parameter, with key
being the parameter name, and the attribute value being a string representation of the parameter value.
§Notes
If a query parameter has no name and instead is referenced only by index,
then [key]
SHOULD be the 0-based index.
db.query.parameter.[key]
SHOULD match
up with the parameterized placeholders present in db.query.text
.
db.query.parameter.[key]
SHOULD NOT be captured on batch operations.
Examples:
- For a query
SELECT * FROM users where username = %s
with the parameter"jdoe"
, the attributedb.query.parameter.0
SHOULD be set to"jdoe"
. - For a query
"SELECT * FROM users WHERE username = %(username)s;
with parameterusername = "jdoe"
, the attributedb.query.parameter.username
SHOULD be set to"jdoe"
.
§Examples
"someval"
"55"