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

feat: add WhereNull method #403

Closed
wants to merge 3 commits into from
Closed

feat: add WhereNull method #403

wants to merge 3 commits into from

Conversation

Kamandlou
Copy link
Contributor

πŸ“‘ Description

add WhereNull method

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Comparison is base (686cf6b) 41.88% compared to head (3e28bce) 70.58%.
Report is 1 commits behind head on master.

❗ Current head 3e28bce differs from pull request most recent head 016090a. Consider uploading reports for the commit 016090a to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #403       +/-   ##
===========================================
+ Coverage   41.88%   70.58%   +28.70%     
===========================================
  Files         271      152      -119     
  Lines       16245     9060     -7185     
===========================================
- Hits         6804     6395      -409     
+ Misses       8835     2159     -6676     
+ Partials      606      506      -100     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Comment on lines 2818 to 2826
s.Run(driver.String(), func() {
user := User{Name: "where_null_user", Avatar: "where_null_avatar"}
s.Nil(query.Create(&user))
s.True(user.ID > 0)

var users []User
s.Nil(query.WhereNull("name").Find(&users))
s.True(len(users) == 0)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S: We'd better create a NULL data and query it.

@Kamandlou Kamandlou closed this Feb 9, 2024
@Kamandlou Kamandlou deleted the WhereNull branch February 9, 2024 15:19
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