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

Allow datasource argument in finders #1183

Merged

Conversation

chapmandu
Copy link
Contributor

  • Implement a datasource argument in find* model methods
  • Write some tests that uses the H2 datasource as the alternative
  • It passes the value down to the query execute function

@bpamiri bpamiri merged commit 7f84e98 into cfwheels:develop Sep 16, 2022
@bpamiri
Copy link
Collaborator

bpamiri commented Sep 16, 2022

@chapmandu I pushed this out last night as v2.5.0-dev and updated the API docs so the 2.5-dev docs are on the site as well. Thanks for the work.

@chapmandu chapmandu deleted the allow-datasource-argument-in-finders branch September 16, 2022 12:07
@chapmandu
Copy link
Contributor Author

@bpamiri For some reason, this test case is not in the develop branch?

https://github.com/cfwheels/cfwheels/blob/main/wheels/tests/model/read/datasource.cfc

@bpamiri
Copy link
Collaborator

bpamiri commented Nov 10, 2023

I back ported your changes and added this missing test to develop. Thanks for jumping on this so quickly.

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.

2 participants