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

Add NULLIF operator #406

Open
3 tasks done
PJHRobles opened this issue Feb 8, 2024 · 0 comments · May be fixed by #407
Open
3 tasks done

Add NULLIF operator #406

PJHRobles opened this issue Feb 8, 2024 · 0 comments · May be fixed by #407
Assignees

Comments

@PJHRobles
Copy link

Is your feature request related to a problem? Please describe.

No NULLIF operator exposed for goqu

Describe the solution you'd like

Just want a helper for NULLIF similar to functions like COALESCE (goqu.COALESCE(...))

Describe alternatives you've considered

I am aware I can simply do the following:

goqu.Func(
    "NULLIF",
    table.Col("column"),
    0,
)

but it would be easier if the interface for it was exposed and added to documentation

Dialect

  • postgres
  • mysql
  • sqlite3

Additional context
N/A

I am more than happy to implement it myself if maintainers do not have the bandwidth

@PJHRobles PJHRobles linked a pull request Feb 8, 2024 that will close this issue
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 a pull request may close this issue.

2 participants