Using PostgreSQL instead of Redis #1

Merged
martin merged 9 commits from postgres into master 2025-01-08 14:10:31 +01:00
Showing only changes of commit f0af0ff4a7 - Show all commits

View file

@ -84,8 +84,6 @@ async fn create_user(
let username = payload.username; let username = payload.username;
let password = payload.password; let password = payload.password;
//let user_key = format!("user:{username}:key");
let row: (i64,) = sqlx::query_as("SELECT COUNT(id) FROM users WHERE username = $1") let row: (i64,) = sqlx::query_as("SELECT COUNT(id) FROM users WHERE username = $1")
.bind(&username) .bind(&username)
.fetch_one(&db_pool) .fetch_one(&db_pool)