-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DXP-320 Replace Prisma with Drizzle #917
base: main
Are you sure you want to change the base?
Conversation
package.json
Outdated
"@scalar/fastify-api-reference": "^1.25.61", | ||
"@supercharge/promise-pool": "^3.2.0", | ||
"amqplib": "^0.10.4", | ||
"awilix": "^12.0.3", | ||
"awilix-manager": "^5.5.0", | ||
"bullmq": "^5.25.4", | ||
"dotenv": "^16.4.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it inevitable? can we use native node env support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should definitely be able to avoid this. I've followed Drizzle's instructions for installation but something has changed and they are squeezing in dotenv
in the recommended instructions, but it looks like it's not strictly needed. Maestro doesn't have it and works fine. I'll remove it!
04a1f31
to
96b228b
Compare
}, | ||
}) | ||
} | ||
drizzle: asFunction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it need to be closed at the app shutdown?
await delegate.deleteMany() | ||
function getSchemaForModel(model: DB_MODEL): string { | ||
switch (model) { | ||
case DB_MODEL.User: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to avoid manual enumeration here? does drizzle provide something we can iterate over?
No description provided.