We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa2c8f commit a57e59dCopy full SHA for a57e59d
sqlx-core/src/query.rs
@@ -558,7 +558,7 @@ where
558
/// let query = format!("SELECT * FROM articles WHERE content LIKE '%{user_input}%'");
559
/// // where `conn` is `PgConnection` or `MySqlConnection`
560
/// // or some other type that implements `Executor`.
561
-/// let results = sqlx::query(&query).fetch_all(&mut conn).await?;
+/// let results = sqlx::query(sqlx::AssertSqlSafe(query)).fetch_all(&mut conn).await?;
562
/// # Ok(())
563
/// # }
564
/// ```
0 commit comments