Skip to content

Embedded fields should be ignored by default #17

@kobi-c0

Description

@kobi-c0

When adding an embedded fields like so:

type ColumnFields struct {
	ColA                              string    `db:"col_a" json:"col_a"`
	ColB                              string    `db:"col_b" json:"col_b"`
}

type TestStruct struct {
	ColumnFields 
}

We need to add the following tags to TestStruct in order for the encoding/decoding to work properly:
goqux:"skip_select,skip_insert"

Need to fix so that it would ignore such cases by default

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