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

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -