Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dariacm
Copy link
Contributor

@dariacm dariacm commented Nov 14, 2024

No description provided.

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",
Copy link
Collaborator

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?

Copy link
Contributor Author

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!

@dariacm dariacm force-pushed the DXP-320_replace_prisma_with_drizzle branch from 04a1f31 to 96b228b Compare November 15, 2024 09:00
@dariacm dariacm marked this pull request as ready for review November 15, 2024 09:08
@dariacm dariacm requested review from drdaemos and a team as code owners November 15, 2024 09:08
},
})
}
drizzle: asFunction(
Copy link
Collaborator

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:
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants