Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded fields should be ignored by default #17

Open
kobi-c0 opened this issue Mar 10, 2024 · 0 comments
Open

Embedded fields should be ignored by default #17

kobi-c0 opened this issue Mar 10, 2024 · 0 comments

Comments

@kobi-c0
Copy link

kobi-c0 commented Mar 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant