When using a struct tag that ends in "db", sqlx uses the tag - even if the tag is part of a larger string. For example:
type User struct {
MyField string `mydb:"specialname"`,
}
The above will result in "Missing destination name MyField", despite there being no "db" tag.
When using a struct tag that ends in "db", sqlx uses the tag - even if the tag is part of a larger string. For example:
The above will result in "Missing destination name MyField", despite there being no "db" tag.