gen
gen copied to clipboard
feat: Allow developer to use raw fields
- [x] Do only one thing
- [x] Non breaking API changes
- [x] Tested
What did this pull request do?
User Case Description
f := field.NewRaw("", "DATE_ADD(expired_at, INTERVAL 10 DAY)")
This feature wil allow developers to add dynamic columns easily. for example:
- case t1.c1 when 1 then a end can be used as a field
- select * from t1 where t1.c2< t1.c1+200 query by self-referencing
good
Nice, I also have the same requirement, select string_agg(column, ',') ...
I really don't want to write raw SQL.
good
这个咋还没有合并进去呀
这个pr什么时候能合并啊?开发中确实有时候会需要这个功能
bad!
+1