X
Xata5mo ago
James!!

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
No description
8 Replies
James!!
James!!OP5mo ago
how can i pull schema changes without the xata client?
kostas
kostas5mo ago
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.
kostas
kostas5mo ago
Drizzle ORM - List of commands
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
James!!
James!!OP5mo ago
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?
James!!
James!!OP5mo ago
No description
kostas
kostas5mo ago
The schema.ts file is Drizzle's schema. It is recreated when you run drizzle-kit introspect
James!!
James!!OP5mo ago
understood, thanks again for for the response
kostas
kostas5mo ago
Happy to help!
Want results from more Discord servers?
Add your server