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: extend conditions #5

Merged
merged 1 commit into from
Jun 2, 2023
Merged

feat: extend conditions #5

merged 1 commit into from
Jun 2, 2023

Conversation

umalmyha
Copy link
Contributor

@umalmyha umalmyha commented Jun 1, 2023

extend conditions with error and zero value in case of missing args

extend conditions with error and zero value in case of missing args
@@ -116,8 +116,8 @@ func TestAllowFiltering(t *testing.T) {
b := new(ResourceSelectBuilder)
const conditionName = "c1"
conditions := ConditionMap{
conditionName: func(field string, args ...interface{}) Sqlizer {
return nil
conditionName: func(field string, args ...interface{}) (Sqlizer, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@umalmyha move this rule to the .golangci.yml

@alex-poliushkin alex-poliushkin merged commit a9c95e3 into velmie:main Jun 2, 2023
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