-
Notifications
You must be signed in to change notification settings - Fork 21
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
[email protected] breaks postgres getTables #28
Comments
Hi @conorbrandon, experiencing this also. Did you come up with a workaround? |
I downgraded to 0.25.0 to confirm this fixes the error I was getting about |
@dan-turner my workaround was to use {
"scripts": {
"install": "sed -i '' 's/qb.where(\"c.relkind\", \"=\", \"r\").orWhere(\"c.relkind\", \"=\", \"v\")/qb(\"c.relkind\", \"=\", \"r\").or(\"c.relkind\", \"=\", \"v\")/' node_modules/kysely-data-api/dist/esm/postgres-introspector.js"
}
} It's not an ideal workaround... The requirements for my project actually changed and I can no longer use Postgres (I was actually going to close the issue, glad I didn't!), so I didn't get a chance to deploy this and/or depending on your build step this might not work, but at least testing locally, it seemed to work. |
Would love to get a fix in for this -- I am also version pinning |
@thdxr any thoughts? |
will accept a PR |
A single Install script inspired by @conorbrandon: {
"scripts": {
"install": "sed -i.bak 's/.where((qb) => qb.where(\"c.relkind\", \"=\", \"r\").orWhere(\"c.relkind\", \"=\", \"v\"))/.where(\"c.relkind\", \"in\", [\"r\", \"v\"])/g' node_modules/kysely-data-api/dist/esm/postgres-introspector.js"
}
} |
[email protected] removed "the deprecated orWhere, whereExits etc. methods".
Unfortunately, this breaks the postgres-introspector at line 70, required (obviously) for migrations.
Would it be possible to make a backwards compatible change, something like
Or maybe specify the kysely peer dependency should be
<0.26.0,
instead of any0.x
version?Otherwise, very much enjoying the library. Thanks!
The text was updated successfully, but these errors were encountered: