Using rust sqlx sqlx = { version = "0.8.6", features = ["sqlite", "runtime-tokio", "macros"] } .
I am using a SQLite Db for my application. After making a db connection pool and performing a query , when i try to print the result of the query i am unable to do so.
Code :-
let db_url = crate::utils::env::db_url();
let pool = sqlx::sqlite::SqlitePoolOptions::new()
.max_connections(5)
.connect(&db_url)
.await
.expect("db connection error");
let rows = sqlx::query(query_string)
.bind(&id)
.fetch_all(&pool)
.await
.expect("db query error");
println!("Query result - {:#?}", rows); //error is shown here
Error :-
SqliteRow` doesn't implement `Debug`
the trait `Debug` is not implemented for `SqliteRow`
the trait `Debug` is implemented for `Vec<T, A>