My goal is to query the database and find if a user already exists with the giving email. Looking at the documentation, this appears the way to do so. ...
My goal is to query the database and find if a user already exists with the giving email. Looking at the documentation, this appears the way to do so. ...
I unfortunately must use sql_query(). However, I'm wondering if there is a way to serialize the database results into a nested struct. I'd like to avo ...
I'm trying to implement the trait diesel::Insertable<table in Rust. In mail.rs This is because the following code results in this error: Loo ...
This may seem weird, but my Diesel test project is behaving strange: I cannot access to many methods recommended in guides, such as .get_results() aft ...
. Answers to this question are eligible for a +50 reputation bounty. te ...
Getting the following error: I am using Diesel v2, it worked before I upgraded to the latest version. What am I doing wrong? models/products.rs ...
I am having trouble grouping Items in a Vector. What I have so far is the following (simplified): #[derive(Debug, Clone, Queryable, Serialize, Dese ...
I want to move the big shared query code with many joins to a separate function. I intend to preserve this as a lazy query which would be executed in ...
I am trying to order diesel queries dynamically, something like this question. QueryOrdering::order_query works fine, but when I tried to create the D ...
I'm trying to use the Diesel crate (version 2.0.2; rustc 1.63.0) for an application and have some code that goes like this: src/models.rs use uuid:: ...
I am issuing a raw sql in diesel. Without parameters the code compiles. But when I add parameters to the sql_query using bind the code won't compile. ...
I am trying to make an Actix API with Diesel, and in making the first endpoint (/books/create), I am having trouble trying to get the inserted value b ...
How can a generic boxed filter be applied to a queryset that contains a table and every other queryset where the table is present? For the following ...
When trying to call load on my prices schema created by diesel in a Rocket app, I get the error the trait LoadConnection is not implemented for &m ...
I'm trying to implement a custom Diesel type using ToSql/FromSql traits. My code now looks like this: use diesel::{ backend::Backend, deseri ...
I'm building an API using Rocket and Diesel, and I'm managing the DbPool using Rocket's State. A search request handler might look like this, then: # ...
I tried to execute an sql_query with Diesel that doesn't match a single table and I got the following error: Here is the relevant code (where claus ...
I have 2 issues. There is no joinable! entry for "categories" in the schema.rs, why does this happen? if 2 columns are added with foreign key r ...
I am stuck at this error and not sure how to fix it. Any thoughts what I'm doing wrong? Error: models.rs /product/properties.rs Using PgT ...
I am currently working on an api using actix_web and diesel in rust. Now to my question; I am trying to make an sql request like this one: SELECT * F ...