mysql - GORM Use explicit column names in selects -
i'm using gorm mapping mysql db tables may have columns not part of gorm models them.
selecting row form such table crashes because gorm emits select * ... query , tries scan results in model struct impossible because there more returned columns expected.
is there way force gorm explicitly name columns in emitted select queries?
looking @ source code, not seem possible.
Comments
Post a Comment