-
-
Notifications
You must be signed in to change notification settings - Fork 13
feat: db pull implementation #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
85bbb6e to
08006cf
Compare
|
Just a heads up, I'm renaming "@zenstackhq/runtime" package to "@zenstackhq/orm". |
a460646 to
0bae20d
Compare
generate model from ground up and diff later
- include imports in output - fix indentaions - include comments in output
- improve code styling - enable schema support for db pull
Enhances the `db pull` command with a spinner for better UX. Adds color-coded logging to highlight important steps. Provides more detailed output on schema changes, including deleted models, enums, added fields, and deleted attributes. Also includes minor improvements to enum mapping and constraint handling.
Summary
This PR introduces
db pullsupport tozenstack_v3, similar to Prisma’sdb pull.The command enables introspection of the database schema and generates corresponding models within the project.
Current Status
db pullcommand@mapfor fields/models@db.\<Raw databse type\>, ie:@db.Real)Notes