Skip to content

Correct bug "ERROR: Can't extend QueryBuilder with existing method ('cache')" #84

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

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

daniel-keller
Copy link
Contributor

@daniel-keller daniel-keller commented Sep 28, 2022

Corrected bug where passing in an existing instance of Knex connection results in failure to extend QueryBuilder with cache method. ERROR: Can't extend QueryBuilder with existing method ('cache')

Fixes #81 and I think #83 but I would like @marvin-kolja thoughts on that. See explanation here #81 (comment)

…cache')"

Corrected bug where passing in an existing instance of Knex connection results in failure to extend QueryBuilder with cache method.
`ERROR: Can't extend QueryBuilder with existing method ('cache')`

Fixes cvburgess#81 and I think cvburgess#83 but I would like @marvin-kolja thoughts on that.
See explanation here cvburgess#81 (comment)
@daniel-keller daniel-keller changed the title Correct bug "ERROR: Can't extend QueryBuilder with existing method ('… Correct bug "ERROR: Can't extend QueryBuilder with existing method ('cache')" Sep 28, 2022
@marvin-kolja
Copy link

marvin-kolja commented Dec 16, 2022

Hey @daniel-keller. Sorry for the late response. I haven't tested your new approach, but it seems reasonable.

Regarding #83, this PR fixes the approach I have chosen in my example there. However, in my issue I'm rather talking about the problem that results from creating the datasource only once and reusing it over and over again - without your PR merged I don't see a reason to continue using this library since it doesn't work as I need it to.

@cvburgess Would love to see some feedback from your side :)

@cvburgess cvburgess merged commit ea1fee3 into cvburgess:main Apr 24, 2023
@cvburgess
Copy link
Owner

@daniel-keller thank you for the contribution! I have released 2.1.0 with this change 🙏}

cc @marvin-kolja if this is still helpful to you

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.

ERROR: Can't extend QueryBuilder with existing method ('cache') - when initating with knex connection
3 participants