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