drift
drift copied to clipboard
Drift files: Support Dart placeholders for updates
In drift files, companions can be referenced for insert statements using
createUser: INSERT INTO users $newUser;
which will then make drift generate a createUser(Insertable<User> newUser) method to supply different columns.
This syntax does not currently work for updates, but something like UPDATE users SET $changes might be nice to have.