SQLX “missing destination name” when using table name in the struct tag
问题 The issue is that when I use struct tags with an object, they do not work properly. I've worked on projects before that have done the same thing but have had no issue, but I can't figure out why. Example: this does not work: type Category struct { ID int `json:"id" db:"category.id"` Name string `json:"name" db:"category.name"` Description string `json:"description" db:"category.description"` } error received: missing destination name id in *[]Category this works fine: type Category struct {