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

Rename expr type to make it public. #2604

Merged
merged 1 commit into from
Oct 17, 2019
Merged

Rename expr type to make it public. #2604

merged 1 commit into from
Oct 17, 2019

Conversation

macklin-10x
Copy link
Contributor

In several cases I've really wanted the ability to return the result of calling QueryExpr from a function. The expr type being private prevents being able to write a function that returns or accepts it. The public constructor for this type doesn't do anything besides forward the args. I'm assuming this was private in the first place to allow future refactoring, but this has been stable for some time. This would be a significant usability improvement.

@codecov-io
Copy link

Codecov Report

Merging #2604 into master will not change coverage.
The diff coverage is 75%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2604   +/-   ##
=======================================
  Coverage   79.42%   79.42%           
=======================================
  Files          24       24           
  Lines        3466     3466           
=======================================
  Hits         2753     2753           
  Misses        612      612           
  Partials      101      101
Impacted Files Coverage Δ
search.go 90.54% <0%> (ø) ⬆️
scope.go 87.22% <100%> (ø) ⬆️
utils.go 85.21% <100%> (ø) ⬆️
main.go 80.99% <50%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 836fb2c...4bace54. Read the comment docs.

@jinzhu jinzhu merged commit 5b3e40a into go-gorm:master Oct 17, 2019
blefevre pushed a commit to blefevre/gorm that referenced this pull request Feb 17, 2020
cgxxv pushed a commit to cgxxv/gorm that referenced this pull request Mar 25, 2022
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.

3 participants