uber
Explore posts from serversDTDrizzle Team
•Created by vic-dev on 3/15/2025 in #help
Cannot run "drizzle-kit generate" anymore
same
2 replies
DTDrizzle Team
•Created by uber on 2/15/2025 in #help
$count with relation api returning wrong values ( 2 instead of 0)
@here
4 replies
DTDrizzle Team
•Created by uber on 2/15/2025 in #help
$count with relation api returning wrong values ( 2 instead of 0)
Also mapWith doesnt work i get :
project 1 >> { id: 1, matches: [], matchesCount: '0' }
4 replies
DTDrizzle Team
•Created by uber on 2/15/2025 in #help
$count with relation api returning wrong values ( 2 instead of 0)
the following works :
4 replies
DTDrizzle Team
•Created by uber on 2/9/2025 in #help
trying to use $count withing query relational api
anyone got a better solution?
6 replies
DTDrizzle Team
•Created by uber on 2/9/2025 in #help
trying to use $count withing query relational api
I can fix it if i rename my project table column name
from "id" to id: serial("project_id").primaryKey(),
6 replies
DTDrizzle Team
•Created by uber on 2/9/2025 in #help
trying to use $count withing query relational api
ive also tried
same error
6 replies
DTDrizzle Team
•Created by uber on 2/9/2025 in #help
trying to use $count withing query relational api
why is it using
projects.project_id
6 replies
DTDrizzle Team
•Created by uber on 2/9/2025 in #help
trying to use $count withing query relational api
generated query:
6 replies
DTDrizzle Team
•Created by uber on 1/10/2025 in #help
🚨 Issue: Testing with PostgreSQL and Drizzle ORM using Testcontainers
Yeah i was just lookin at this, i kinda like the idea of override the import, thats what i need (I think)
7 replies
DTDrizzle Team
•Created by uber on 1/10/2025 in #help
🚨 Issue: Testing with PostgreSQL and Drizzle ORM using Testcontainers
EDIT EDIT EDIT:
i now have this but i dont rly like it:
tests
7 replies
DTDrizzle Team
•Created by uber on 1/10/2025 in #help
🚨 Issue: Testing with PostgreSQL and Drizzle ORM using Testcontainers
const container = await new PostgreSqlContainer().start();
would have to move from my test files and would go in my global db handler file to be used as db instance if NODE_ENV
is test
?
Is that a clean approach7 replies
DTDrizzle Team
•Created by uber on 1/10/2025 in #help
🚨 Issue: Testing with PostgreSQL and Drizzle ORM using Testcontainers
If no, what is a good simple approach.
If yes how would i differenciate between dev/prod vs test? envs .. NODE_ENV?
7 replies
DTDrizzle Team
•Created by uber on 1/10/2025 in #help
🚨 Issue: Testing with PostgreSQL and Drizzle ORM using Testcontainers
I dont want to have to pass a db instance to my methods..
that leads me to handle the global instance to return the proper db instance based on the use case:
In my global db instance i would either return my dev/prod db instance but if test return the testcontainers postgres db instance ?
Is this the right approach?
7 replies
DTDrizzle Team
•Created by uber on 10/29/2024 in #help
Evolving form data and typesafety .
Cant find anybody having my issue so I must be doing something wrong or thinking about if the wrong way.
The only way i came up with is adding versioning to my schemas (in my codebase) everytime my schema changes but then my code will become messy real quick
2 replies