v2.0
WIP
v1.0 - 2016.04.27
Breaking Changes
gorm.Open
return type*gorm.DB
instead ofgorm.DB
Updating will only update changed fields
Soft Delete’s will only check
deleted_at IS NULL
New ToDBName logic
When GORM convert struct, field name to db name, only common initialisms from golint like
HTTP
,URI
were handled, soHTTP
‘s db name ishttp
, but noth_t_t_p
.But for some other initialisms not in the list, like
SKU
, it’s db name wass_k_u
, this change fixed it.Error
RecordNotFound
has been renamed toErrRecordNotFound
mssql
dialect has been renamed to “github.com/jinzhu/gorm/dialects/mssql”Hstore
has been moved to package “github.com/jinzhu/gorm/dialects/postgres”