SDSS
SDSS
DTDrizzle Team
Created by SDSS on 5/21/2024 in #help
Ability to call Drizzle-Kit push function via import
Apologies as I am a very new developer, so this may be a rather obvious problem. I'm writing a multi-tenant SaaS application that uses schema seperation per user/company in the DB. When a user is created, I need to perform a drizzle-kit push to deploy the new schema. I was thinking it would be most elegant to integrate this into my user creation API endpoint, but am not sure how to actually execute these push functions as they seem to only be available via CLI. Can anyone shed some light? SaaS application is hosted on vercel using vercel/postgres driver. Can move to pg driver if required.
4 replies