Skip to content
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

Fix postgres pushSchema in api.ts #3927

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

james-pellow
Copy link

The current version of drizle-kit/src/api.ts does not work. The issue is that in the db object the query method doesn't support params being passed to the query. There doesn't seem to be an easy way to pass params to drizzleInstance.execute so I am using the $client attribute to pass the query directly to postgres. With this fix pushSchema in api.ts is working for postgres.

@james-pellow
Copy link
Author

Is there something missing from this that prevents it from being accepted? This is significantly holding us up and I have heard from others that it is holding them up as well. Please let me know if there is something else you need in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant