Kylar
Kylar
Explore posts from servers
DTDrizzle Team
Created by Kylar on 10/29/2024 in #help
Error introspecting a MySQL database
Hey guys!! I'm getting the following error when using npx drizzle-kit pull against a MySQL database:
code: 'ER_UNKNOWN_TABLE',
errno: 1109,
sqlState: '42S02',
sqlMessage: "Unknown table 'check_constraints' in information_schema"
code: 'ER_UNKNOWN_TABLE',
errno: 1109,
sqlState: '42S02',
sqlMessage: "Unknown table 'check_constraints' in information_schema"
These are the versions I'm using for the relevant packages:
"mysql2": "^3.11.3"
"drizzle-orm": "^0.35.3",
"drizzle-kit": "^0.26.2",
"mysql2": "^3.11.3"
"drizzle-orm": "^0.35.3",
"drizzle-kit": "^0.26.2",
Anyone have any idea how to go about it?
2 replies
TtRPC
Created by Kylar on 1/24/2024 in #❓-help
How can i createCaller from a NextJs App Router if my server uses express tRPC adapter?
I'm using the express adapter for the server side of tRPC, and the client is a NextJS AppRouter app. I was getting to setting up the createCaller helper to be able to call from RSC, but createCaller needs the context, which for the express adapter is the request and response objects. The issue here is that I don't actually have the request/response objects in NextJS App router by design (https://nextjs.org/docs/app#how-can-i-access-the-request-object-in-a-layout), which leaves me unsure about how to move forward Is tRPC unusable with this setup? Do I need a proxy adapter or is there some piece that I am missing?
8 replies