MySQL to Go Type Mapping - Zontroy

MySQL to Go Type Mapping

MySQL Data TypeGo Data TypeGo Nullable Data TypeGo Primitive Type
bigintint64int64
bitboolbool
charstringstring
date
datetime
decimalfloat64float64
floatfloat32float32
intintint
longtextstringstring
mediumintintint
mediumtextstringstring
smallintint16int16
textstringstring
time
timestamp
tinyintint8int8
tinytextstringstring
varbinary[]byte
varcharstringstring

Post a Comment