Skip to content

struct tag "db" #269

@dkumor

Description

@dkumor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions