Quantcast
Channel: How do I perform an `UPDATE FROM` using Diesel? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Shepmaster for How do I perform an `UPDATE FROM` using Diesel?

You can join the tables, apply a filter, then use that as the update condition:#[macro_use]extern crate diesel; // 1.4.5, features = ["postgres"]use diesel::prelude::*;table! { a { id -> Integer,...

View Article



How do I perform an `UPDATE FROM` using Diesel?

Suppose I have three tables, a, b and c:create table c ( id serial primary key, can_edit_b boolean not null);create table b ( id serial primary key, value text not null);create table a ( id serial...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images