DEV Community

Discussion on: Practical Rust Web Development - CI Travis

Collapse
 
laynath242 profile image
LayNath242 • Edited

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.

Collapse
 
aka_dude profile image
Andrew Andersen • Edited

Probably you need this diesel.rs

Collapse
 
laynath242 profile image
LayNath242

thank you, but i'm so beginner i still don't understand.

Thread Thread
 
aka_dude profile image
Andrew Andersen

Do you know Rust?

Thread Thread
 
laynath242 profile image
LayNath242

know but not much.

Collapse
 
deciduously profile image
Ben Lovy

Check out include_sql. Diesel is a full featured ORM. Not all projects need it, you can of course write SQL directly.

Collapse
 
laynath242 profile image
LayNath242

thank you.