Tools like Travis can be really helpful to figure it out the stability of our software, specially when we have a huge codebase that requires a lot ...
For further actions, you may consider blocking this person and/or reporting abuse
Hello. I do this and got all data. but i only need only username and title. How to do this.Thank you.
[derive(Serialize, Deserialize)]
pub struct UserRoleList(pub Vec<(Role, User)>);
impl UserRoleList {
pub fn list(connection: &PgConnection) -> Self {
use crate::schema::{roles,users};
use diesel::RunQueryDsl;
use diesel::QueryDsl;
}
Hi, like SQL you can use a select clause, for example: github.com/practical-rust-web-deve...
thank you
hello teacher.i have user table and role table.
select fullname, roles.title from users inner join roles on roles.id = users.role_id;
how to write this in rust.
thank you.
Probably you need this diesel.rs
thank you, but i'm so beginner i still don't understand.
Do you know Rust?
know but not much.
Check out include_sql. Diesel is a full featured ORM. Not all projects need it, you can of course write SQL directly.
thank you.
Hi, you need to register an user, for example:
Then you need to login:
You copy the cookie and csrf token and pass them through the request: