If not mistaken this was added to because of recent versions of MySQL having the support for JSON field types.
This is actually good, because I’m currently using JSON field types in MySQL 5.7.14.
My question is… how do we define it in the struct?
type Note struct {
ID int `json:"id" db:"id"`
Content string `json:"content,omitempty" db:"content"`
Params json `json:"params,omitempty" db:"params"`
}
yes I know it was me. Also I created an issue on the sqlx github https://github.com/jmoiron/sqlx/issues/244 but I’m not to keen that is going to get and answer… but let’s see.