tunisoft
tunisoft
DTDrizzle Team
Created by tunisoft on 8/20/2023 in #help
Is it possible to use nanoid for uuid?
2 replies
DTDrizzle Team
Created by tunisoft on 8/7/2023 in #help
Typescript enum to pgEnum
Thank you
6 replies
DTDrizzle Team
Created by tunisoft on 8/7/2023 in #help
Typescript enum to pgEnum
How to work around this issue?
6 replies
DTDrizzle Team
Created by tunisoft on 8/7/2023 in #help
Typescript enum to pgEnum
Why doesn't it just accept a string array?
6 replies
DTDrizzle Team
Created by tunisoft on 8/7/2023 in #help
Typescript enum to pgEnum
export const typeEnum = pgEnum('type', ['abcd', ...Object.values(field_types)]);
export const typeEnum = pgEnum('type', ['abcd', ...Object.values(field_types)]);
6 replies
DTDrizzle Team
Created by tunisoft on 8/7/2023 in #help
Typescript enum to pgEnum
I change the code like this, just to test
6 replies
DTDrizzle Team
Created by tunisoft on 7/7/2023 in #help
[solved] One to many relation not working
It worked perfectly 💯 Thank you very much!
7 replies
DTDrizzle Team
Created by tunisoft on 7/7/2023 in #help
[solved] One to many relation not working
That makes sense. I thought it would use the references part for that. I will see how to fix it
7 replies
DTDrizzle Team
Created by tunisoft on 7/7/2023 in #help
[solved] One to many relation not working
Thank you for the idea. I will try it and see if it works
7 replies
DTDrizzle Team
Created by tunisoft on 7/7/2023 in #help
[solved] One to many relation not working
I'm using postgres btw
7 replies
DTDrizzle Team
Created by mgarf on 7/5/2023 in #help
findmany doesn't easily allow gte or lte?
But in the docs, there's an example with lt
await db.query.posts.findMany({
where: (posts, { eq }) => (eq(posts.id, 1)),
with: {
comments: {
where: (comments, { lt }) => lt(comments.createdAt, new Date()),
},
},
});
await db.query.posts.findMany({
where: (posts, { eq }) => (eq(posts.id, 1)),
with: {
comments: {
where: (comments, { lt }) => lt(comments.createdAt, new Date()),
},
},
});
https://orm.drizzle.team/docs/rqb
3 replies