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: Allow developer to use raw fields #968

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikyChow
Copy link

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

User Case Description

f := field.NewRaw("", "DATE_ADD(expired_at, INTERVAL 10 DAY)")

@MikyChow
Copy link
Author

This feature wil allow developers to add dynamic columns easily.
for example:

  1. case t1.c1 when 1 then a end can be used as a field
  2. select * from t1 where t1.c2< t1.c1+200 query by self-referencing

@MikyChow MikyChow changed the title add new raw filed feat: Allow developer use raw filed Aug 31, 2023
@MikyChow MikyChow changed the title feat: Allow developer use raw filed feat: Allow developer use raw fields Aug 31, 2023
@MikyChow MikyChow changed the title feat: Allow developer use raw fields feat: Allow developer to use raw fields Aug 31, 2023
@a67793581
Copy link

good

@ilxqx
Copy link

ilxqx commented Dec 3, 2023

Nice, I also have the same requirement, select string_agg(column, ',') ...

I really don't want to write raw SQL.

@foundVanting
Copy link

good

@serious-snow
Copy link

这个咋还没有合并进去呀

@whit15
Copy link

whit15 commented Jul 10, 2024

这个pr什么时候能合并啊?开发中确实有时候会需要这个功能

@mimicode
Copy link

image

bad!

@ypli0629
Copy link

+1

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.

8 participants