format some sql strings

This commit is contained in:
SadlyNotSappho 2024-02-01 12:34:12 -08:00
parent eeac92ec91
commit e46360eaa7
1 changed files with 6 additions and 5 deletions

View File

@ -24,8 +24,9 @@ impl Post {
.fetch_all(
sqlx::query(
r#"
INSERT INTO posts (title, body, published)
VALUES ($1, $2, $3); "#,
INSERT INTO posts (title, body, published)
VALUES ($1, $2, $3);
"#,
)
.bind(title)
.bind(body)
@ -65,9 +66,9 @@ impl User {
.fetch_all(
sqlx::query(
r#"
INSERT INTO users (username, password)
VALUES ($1, $2);
"#,
INSERT INTO users (username, password)
VALUES ($1, $2);
"#,
)
.bind(username)
.bind(sha256::digest(password)),