gen icon indicating copy to clipboard operation
gen copied to clipboard

feat: Allow developer to use raw fields

Open MikyChow opened this issue 2 years ago • 9 comments

  • [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)")

MikyChow avatar Aug 30 '23 02:08 MikyChow

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 avatar Aug 30 '23 02:08 MikyChow

good

a67793581 avatar Oct 07 '23 11:10 a67793581

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

I really don't want to write raw SQL.

ilxqx avatar Dec 03 '23 13:12 ilxqx

good

foundVanting avatar Dec 22 '23 07:12 foundVanting

这个咋还没有合并进去呀

serious-snow avatar Feb 22 '24 11:02 serious-snow

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

whit15 avatar Jul 10 '24 05:07 whit15

image

bad!

mimicode avatar Aug 13 '24 06:08 mimicode

+1

ypli0629 avatar Aug 20 '24 08:08 ypli0629