Closed krazik-intuit closed 3 years ago
Also thank you for building this!
turns out this was the ,
in the tag. I've removed them since scany doesn't use.
Hi! Yes, scany doesn't support any ,
in the struct tag for now.
@georgysavva it's super simple to add support for tho. I'm opening a PR should you want it.
I'm trying to switch from sqlx, I have nested structs for commonly used fields, these worked with sqlx. you seem to have a function
initializeNested()
but it's called after the error, so not sure if it doesn't work or for something else?error scany: column: 'id': no corresponding field found, or it's unexported in...
I tried to poke around to see where to fix but not quite sure. Usually you need to recurse into the child structs.
From another part of my code where I do this