Thogn
Thogn
Explore posts from servers
DTDrizzle Team
Created by Thogn on 1/16/2024 in #help
insert row, got values back, but there's not data stored on the db
const messagess = await db.query.messages.findMany({
where: (message, { eq }) => eq(message.conversationId, conversationId),
});
const mess = await db.select().from(messages).where(eq(messages.conversationId,conversationId))
const messagess = await db.query.messages.findMany({
where: (message, { eq }) => eq(message.conversationId, conversationId),
});
const mess = await db.select().from(messages).where(eq(messages.conversationId,conversationId))
for these queris, they achieve the samething. But the first one I got nothing back,
8 replies
DTDrizzle Team
Created by Thogn on 1/16/2024 in #help
insert row, got values back, but there's not data stored on the db
im using single connection
8 replies
DTDrizzle Team
Created by Thogn on 1/16/2024 in #help
insert row, got values back, but there's not data stored on the db
I'm using pg driver, im not running in a transaction?.
8 replies
DTDrizzle Team
Created by Thogn on 9/27/2023 in #help
how to set default null to an int column
Thank you very much ,it got fixed now
9 replies
DTDrizzle Team
Created by Thogn on 9/27/2023 in #help
how to set default null to an int column
No description
9 replies
DTDrizzle Team
Created by Thogn on 9/27/2023 in #help
how to set default null to an int column
i added this .default(sqlNULL). no type error occurs, im pretty sure that im not passing a blank string value,
9 replies
DTDrizzle Team
Created by Thogn on 9/27/2023 in #help
how to set default null to an int column
No description
9 replies
DTDrizzle Team
Created by Thogn on 9/22/2023 in #help
many-to-may relation
I'm using planetscale which does not alow foregn-key, Is there any way to solve this ?
5 replies