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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

knex.withSchema('schema').raw() is not a function #5380

Open
jhoward1994 opened this issue Nov 14, 2022 · 1 comment
Open

knex.withSchema('schema').raw() is not a function #5380

jhoward1994 opened this issue Nov 14, 2022 · 1 comment

Comments

@jhoward1994
Copy link

Hi Knex Team 馃憢馃徎

Environment

Knex version: 1.0.7
Database + version: Postgres (13.8 but impacting all versions)
OS: MacOS

Bug

  1. We attempted to use knex.withSchema('schema').raw() as part of a feature development at Strapi but our postgres users got the error:
    connection.withSchema().raw is not a function

I expected to still be able to use the .raw() function having specified the DB schema through withSchema

Please see strapi/strapi#14832

Please could you advise the intended approach for using .raw() queries while specifying the Postgres DB schema?

Thanks!

@zodman
Copy link

zodman commented Nov 16, 2022

I think the strapi have to update the code and not knex, the changes on raw comes in the version 0.95 far far away!

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

No branches or pull requests

2 participants