kbemaster
kbemaster
Explore posts from servers
DTDrizzle Team
Created by kbemaster on 8/12/2024 in #help
missing ) after argument list
It is working now! Ty❤️
7 replies
DTDrizzle Team
Created by kbemaster on 8/12/2024 in #help
missing ) after argument list
😞😞
7 replies
DTDrizzle Team
Created by kbemaster on 8/12/2024 in #help
missing ) after argument list
I'm having this issue on a local dockerized postgres container and on a RDS instance
7 replies
DTDrizzle Team
Created by Tekipeps on 6/20/2024 in #help
How do I make .returning() return only the inserted value instead of array
I like to do the following, when I know I just return 1 element
const [insertedValue] = db.insert(table).values(someValue).returning()
const [insertedValue] = db.insert(table).values(someValue).returning()
11 replies
DTDrizzle Team
Created by kbemaster on 2/26/2024 in #help
Shouldn't the fields related to the Query API be of type <T | undefined> ?
Thanks!
6 replies
DTDrizzle Team
Created by kbemaster on 2/26/2024 in #help
Shouldn't the fields related to the Query API be of type <T | undefined> ?
I will try that
6 replies
DTDrizzle Team
Created by kbemaster on 2/26/2024 in #help
Shouldn't the fields related to the Query API be of type <T | undefined> ?
const lesson = db.query.lessonTable
.findFirst({
where: (columns, { eq }) => eq(columns.id, "lessonId"),
with:{
author: true
},
});

// lesson.author.name -> error because author was undefined and I tried to access .name
const lesson = db.query.lessonTable
.findFirst({
where: (columns, { eq }) => eq(columns.id, "lessonId"),
with:{
author: true
},
});

// lesson.author.name -> error because author was undefined and I tried to access .name
6 replies
DTDrizzle Team
Created by kbemaster on 2/22/2024 in #help
Guaranteed undefined for Nested Results? Type Mismatch in Query API
No description
4 replies
DTDrizzle Team
Created by kbemaster on 2/22/2024 in #help
Guaranteed undefined for Nested Results? Type Mismatch in Query API
No description
4 replies
DTDrizzle Team
Created by kbemaster on 2/22/2024 in #help
Guaranteed undefined for Nested Results? Type Mismatch in Query API
No description
4 replies
DTDrizzle Team
Created by MAST on 9/5/2023 in #help
[SOLVED] When running a big bulk insert I get an error, MAX_PARAMETERS_EXCEEDED
Thx!
20 replies
DTDrizzle Team
Created by MAST on 9/5/2023 in #help
[SOLVED] When running a big bulk insert I get an error, MAX_PARAMETERS_EXCEEDED
Is it a good idea to use Promise.all here?
20 replies