Xata pull issue
Im using Xata for a next.js application and with drizzle orm
I chose not to use the xata client but now i don't know how can i pull schema changes without the xata client
8 Replies
how can i pull schema changes without the xata client?
Hi, while the table isn't adapted, the table works as a "vanilla" Postgres one, without Xata's added features like REST API compatibility, file attachments, search etc. The schema is managed purely at the wire protocol, by Drizzle. You can use the
drizzle-kit introspect
command to pull the schema from Xata locally, in drizzle.Drizzle ORM - List of commands
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
got it, thanks @kostas!!!
@kostas silly question but do i need to keep this xata generated schema, or it's just a modified reference of my original schema which i should keep?
The schema.ts file is Drizzle's schema. It is recreated when you run
drizzle-kit introspect
understood, thanks again for for the response
Happy to help!