ivanfeliciano
ivanfeliciano
DTDrizzle Team
Created by rushil1o1 on 8/17/2023 in #help
updatedAt timestamp update on DB row update
2 replies
DTDrizzle Team
Created by 🇨🇭 Marko Bolliger <cannap> on 8/14/2023 in #help
update multiple fields
I believe you will have to explicitly put all the columns in the set: {}
16 replies
DTDrizzle Team
Created by 🇨🇭 Marko Bolliger <cannap> on 8/14/2023 in #help
update multiple fields
Like so:
db
.insert(table)
.values(array)
.onConflictDoUpdate({
target: table.id,
set: {
field: sql`excluded.field`,
},
})
db
.insert(table)
.values(array)
.onConflictDoUpdate({
target: table.id,
set: {
field: sql`excluded.field`,
},
})
16 replies
DTDrizzle Team
Created by Luxaritas on 4/11/2023 in #help
Typescript build fails with large number of columns
TSC diagnostics types went from 106k to 81k and I only have about 8 tables, ~10 columns each. Good job, thanks!
195 replies
DTDrizzle Team
Created by DiamondDragon on 7/6/2023 in #help
Proper Way to Deal with Migration Failures and Rolling Back?
Just tested it, nope.
4 replies
DTDrizzle Team
Created by DiamondDragon on 7/6/2023 in #help
Proper Way to Deal with Migration Failures and Rolling Back?
4 replies