pub fn statement(sql: impl Into<String>) -> StatementExpand description
Create a raw SQL statement.
Statements are executed for their affected-row count. Use
query for SQL that returns rows.
The SQL string must use the placeholder syntax reported by
Capability::sql_placeholder.
ⓘ
let count = toasty::sql::statement(
"DELETE FROM users WHERE archived = ?1",
)
.bind(true)
.exec(&mut db)
.await?;