Gorm: why Omit is not used in select.

Created on 15 Jan 2019  路  6Comments  路  Source: go-gorm/gorm

I want to exclude some columns when selecting.

gorm_v1 feature

Most helpful comment

+1 here, really needed

All 6 comments

+1 here, really needed

@jinzhu ^^

Should be possible, let me implement it in v2.

That's awesome. Thanks so much and thanks for providing a super useful lib :)

@jinzhu any update about this feature? Does it already implemented or soon in v2?

This issue will be automatically closed because it is marked as GORM V1 issue, we have released the public testing GORM V2 release and its documents https://v2.gorm.io/docs/ already, the testing release has been used in some production services for a while, and going to release the final version in following weeks, we are still actively collecting feedback before it, please open a new issue for any suggestion or problem, thank you

Also check out https://github.com/go-gorm/gorm/wiki/GORM-V2-Release-Note-Draft for how to use the public testing version and its changelog

Was this page helpful?
0 / 5 - 0 ratings

Related issues

superwf picture superwf  路  3Comments

littletwolee picture littletwolee  路  3Comments

Ganitzsh picture Ganitzsh  路  3Comments

rfyiamcool picture rfyiamcool  路  3Comments

alanyuen picture alanyuen  路  3Comments