rafar
Memory leak in Deno.serve?
sorry maybe I’m missing something but are you also terminating the socket proxy on connection close? or disposing of it?
I think that works as an even listener which would explain why memory leaks.
Let me know if that helps or if I missed something, that’s a very interesting problem.
good luck!
4 replies
DTDrizzle Team
•Created by iska on 8/8/2024 in #help
using a monorepo with multiple apps and services
ah got it, good point I wasn’t addressing multiple databases
12 replies
DTDrizzle Team
•Created by iska on 8/8/2024 in #help
using a monorepo with multiple apps and services
if you expose all your db queries and entities from the data package you don’t need a drizzle config file anywhere else
12 replies
DTDrizzle Team
•Created by iska on 8/8/2024 in #help
using a monorepo with multiple apps and services
Also the schema is there and all I expose to the test of the apps are repositories to be used on entities. I use turborepo for task orchestration and Vercel with neon integration so that whenever there’s a change in the data package it runs the generate and migrate into whatever env is deployed to
12 replies
DTDrizzle Team
•Created by iska on 8/8/2024 in #help
using a monorepo with multiple apps and services
I isolated all data access concerns into a package called data and there’s a drizzle config within
12 replies
DTDrizzle Team
•Created by iska on 8/8/2024 in #help
using a monorepo with multiple apps and services
I have a setup working now
12 replies
DTDrizzle Team
•Created by jsingleton37 on 7/27/2024 in #help
Confused about onConflictDoUpdate when having a constraint
that’s great, glad to be of help!
4 replies
DTDrizzle Team
•Created by jsingleton37 on 7/27/2024 in #help
Confused about onConflictDoUpdate when having a constraint
i also been having quite a few problems with adding constraints - in my case its slightly more complicated with joins - but in order to understand if my troubleshooting is going on the right path might I ask you what happens if you do:
because then the target would indeed match the constraint in your schema which takes into account also the year column.
let me know if it helps 🙂
4 replies
DTDrizzle Team
•Created by JJZFIVE on 5/26/2024 in #help
How to put Drizzle schemas in shared folder (monorepo) and have api's drizzle.config recognize them
I just ended up moving all drizzle kit related things into a data package that exposes typings via exports - the migrations are triggered if any change happens in the db package which is where the schema is anyway so that should be safe enough - if you're curious Im using turborepo to orchestrate the tasks
5 replies
DTDrizzle Team
•Created by JJZFIVE on 5/26/2024 in #help
How to put Drizzle schemas in shared folder (monorepo) and have api's drizzle.config recognize them
so your approach was to place the config file in the root level of the monorepo?
I think the preferred way would be to actually just point a namespace like a npm package in the same workspace/monrepo like so:
I actually am trying to achieve this, I can run with no errors but it ends up with Drizzle dropping all my tables and having to drop migrations after that...
I hoped this would be possible with less effort
5 replies
DTDrizzle Team
•Created by Eco 🌤 on 5/26/2024 in #help
How to properly infer type or add typings of a returned model with relationship in a component props
I don’t know if this is useful but I use the returned db function to define the schema - it has a method called $inferSelect which gives you the select model.
you can do typeof dbTable.$inferSelect
6 replies