TJ
Explore posts from serversDTDrizzle Team
•Created by TJ on 8/13/2024 in #help
MariaDB support?
I see that Support MariaDB is moved to done with the description of it been released to latest on NPM. Does this means MariaDB is officially supported in the latest release?
https://github.com/drizzle-team/drizzle-orm/issues/203
1 replies
DTDrizzle Team
•Created by TJ on 7/17/2024 in #help
Error handling
Hi,
Currently this how I handle the database error thrown from Drizzle,
Is this the correct way to check if it is a database error?
3 replies
DTDrizzle Team
•Created by TJ on 6/16/2024 in #help
Conflicting peer dependency of [email protected] when installing [email protected] in Next.js 14.2.4
Hi
I'm install
drizzle-orm
in a Next.js project initialized with [email protected]
.
This new project has dependency to React 18.3.1.
Unfortunately, we encounter the following dependency error when install latest drizzle-orm
Do you have any idea of what could be the problem? Shall we use --force
to workaround this error?6 replies
DTDrizzle Team
•Created by TJ on 5/8/2024 in #help
How to share Drizzle schema in multiple projects?
Hi,
I have an Express.js application running with Drizzle ORM. The schemas are defined and migration are generated in this repository, no problem.
and now I'm going to have another application written in Next.js and it is going to access the same database. How can I share the Drizzle schema in multiple projects?
Currently, I'm duplicating the Drizzle's schema from the previous Express.js application repository and make sure I don't run the migration. Do you have a better suggestion?
3 replies
DTDrizzle Team
•Created by TJ on 5/7/2024 in #help
How to share the transaction in multiple services?
Hi,
This is more like a design question.
I'm using Drizzle ORM in Express.js application. I have
userService
and auditService
to update the database records. Before the database transaction, I basically call the services like this,
and then with the database transaction,
Note that in the above, I have to pass the tx
transaction to every service function. Is there a more elegant way than passing the tx
to every function?3 replies
KKinde
•Created by TJ on 4/26/2024 in #💻┃support
Revoke all access tokens from Kinde
Hi,
May I know how to revoke all access tokens from Kinde?
2 replies
KKinde
•Created by TJ on 4/25/2024 in #💻┃support
Protect Next.js route handlers with machine-to-machine application?
Hi,
I want to expose the route handlers defined in Next.js 14 application for external applications to call using OAuth 2 client credentials flow. Can I do this with machine-to-machine application?
I tried to get the access token like this,
but it failed with this error,
Do you know what could be the problem?
10 replies
DTDrizzle Team
•Created by TJ on 4/24/2024 in #help
Access MariaDB in Drizzle using node-mysql2?
Hi,
Drizzle ORM does not support MariaDB officially (see https://github.com/drizzle-team/drizzle-orm/pull/1692).
However, I have seen discussions of using Drizzle to access MariaDB (using node-mysql2 driver). Is this recommended? Is there any compatibility issue?
4 replies
KKinde
•Created by TJ on 11/28/2023 in #💻┃support
Kinde TypeScript type in Next.js middleware
Hi,
With Next.js 14 and TypeScript, may I know how can I specify the type for
req
so that it recognizes req.kindeAuth
,
Is there a type provided by Kinde?2 replies